mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-12 12:58:27 +03:00
feat: support local-only posts from Hometown
This checks the ActivityPub object for any given status to see if it has a `localOnly` property. If it does and it is set to true, then a local-only icon is displayed in the `StatusAction` bar. This mimicks the current Hometown layout and behavior.
This commit is contained in:
parent
3563b58651
commit
23ba49f33e
2 changed files with 15 additions and 1 deletions
|
@ -105,7 +105,7 @@ const reply = () => {
|
|||
</StatusActionButton>
|
||||
</div>
|
||||
|
||||
<div flex-none>
|
||||
<div :class="status.localOnly ? 'flex-1' : 'flex-none'">
|
||||
<StatusActionButton
|
||||
:content="$t('action.bookmark')"
|
||||
color="text-yellow" hover="text-yellow" group-hover="bg-yellow/10"
|
||||
|
@ -117,5 +117,18 @@ const reply = () => {
|
|||
@click="toggleBookmark()"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="status.localOnly"
|
||||
class="i-ri:link-unlink-m local-only"
|
||||
flex-none
|
||||
text-secondary
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.local-only {
|
||||
margin: 0.5em;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
"favourite": "Favorite",
|
||||
"favourite_count": "{0}",
|
||||
"favourited": "Favorited",
|
||||
"local_only": "Local only",
|
||||
"more": "More",
|
||||
"next": "Next",
|
||||
"prev": "Prev",
|
||||
|
|
Loading…
Reference in a new issue