File tree Expand file tree Collapse file tree 6 files changed +26
-1
lines changed Expand file tree Collapse file tree 6 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
5
5
## Unreleased
6
6
7
7
- ** Feature** : Looping of live photos is now gated behind a user setting ([[ #1457 ] ( https://github.com/pulsejet/memories/issues/1457 )] )
8
+ - ** Feature** : Option to hide sharing user from timeline ([ #1452 ] ( https://github.com/pulsejet/memories/issues/1452 ) )
8
9
- ** Fix** : Hide sharing user from public links ([ #1452 ] ( https://github.com/pulsejet/memories/issues/1452 ) )
9
10
10
11
## [ v7.5.1] - 2025-02-26
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ public function getUserConfig(): Http\Response
101
101
'timeline_path ' => $ getAppConfig ('timelinePath ' , SystemConfig::get ('memories.timeline.default_path ' )),
102
102
'enable_top_memories ' => 'true ' === $ getAppConfig ('enableTopMemories ' , 'true ' ),
103
103
'stack_raw_files ' => 'true ' === $ getAppConfig ('stackRawFiles ' , 'true ' ),
104
+ 'dedup_identical ' => 'true ' === $ getAppConfig ('dedupIdentical ' , 'false ' ),
105
+ 'show_owner_name_timeline ' => 'true ' === $ getAppConfig ('showOwnerNameTimeline ' , 'false ' ),
104
106
105
107
// viewer settings
106
108
'high_res_cond_default ' => SystemConfig::get ('memories.viewer.high_res_cond_default ' ),
Original file line number Diff line number Diff line change 44
44
>
45
45
{{ t('memories', 'De-duplicate identical files') }}
46
46
</NcCheckboxRadioSwitch >
47
+
48
+ <NcCheckboxRadioSwitch
49
+ :checked.sync =" config.show_owner_name_timeline"
50
+ @update:checked =" updateShowOwnerNameTimeline"
51
+ type =" switch"
52
+ >
53
+ {{ t('memories', 'Show photo owner name on timeline') }}
54
+ </NcCheckboxRadioSwitch >
47
55
</NcAppSettingsSection >
48
56
49
57
<NcAppSettingsSection id =" viewer-settings" :name =" names.viewer" >
@@ -334,6 +342,10 @@ export default defineComponent({
334
342
await this .updateSetting (' dedup_identical' , ' dedupIdentical' );
335
343
},
336
344
345
+ async updateShowOwnerNameTimeline() {
346
+ await this .updateSetting (' show_owner_name_timeline' , ' showOwnerNameTimeline' );
347
+ },
348
+
337
349
// Viewer settings
338
350
async updateHighResCond(val : IConfig [' high_res_cond' ]) {
339
351
this .config .high_res_cond = val ;
Original file line number Diff line number Diff line change 41
41
</div >
42
42
43
43
<div class =" flag bottom-left" >
44
- <span class =" shared-by" v-if =" sharedBy" >{{ sharedBy }}</span >
44
+ <span class =" shared-by" v-if =" showOwnerName && sharedBy" >{{ sharedBy }}</span >
45
45
</div >
46
46
47
47
<div
84
84
import { defineComponent , type PropType } from ' vue' ;
85
85
86
86
import * as utils from ' @services/utils' ;
87
+ import staticConfig from ' @services/static-config' ;
87
88
88
89
import LivePhotoIcon from ' @components/icons/LivePhoto.vue' ;
89
90
import CheckCircleIcon from ' vue-material-design-icons/CheckCircle.vue' ;
@@ -208,6 +209,13 @@ export default defineComponent({
208
209
return !! this .data .stackraw || this .data .mimetype === this .c .MIME_RAW ;
209
210
},
210
211
212
+ showOwnerName(): boolean {
213
+ if (this .routeIsBase && ! staticConfig .getSync (' show_owner_name_timeline' )) {
214
+ return false ;
215
+ }
216
+ return true ;
217
+ },
218
+
211
219
sharedBy(): string | null {
212
220
if (this .data .shared_by == ' [unknown]' ) {
213
221
return this .t (' memories' , ' Shared' );
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ class StaticConfig {
135
135
enable_top_memories : true ,
136
136
stack_raw_files : true ,
137
137
dedup_identical : false ,
138
+ show_owner_name_timeline : false ,
138
139
139
140
// viewer settings
140
141
high_res_cond_default : 'zoom' ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ declare module '@typings' {
22
22
enable_top_memories : boolean ;
23
23
stack_raw_files : boolean ;
24
24
dedup_identical : boolean ;
25
+ show_owner_name_timeline : boolean ;
25
26
26
27
// viewer settings
27
28
high_res_cond_default : HighResCond ;
You can’t perform that action at this time.
0 commit comments