summaryrefslogtreecommitdiffstats
path: root/src/components/TimelinePost.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/TimelinePost.vue')
-rw-r--r--src/components/TimelinePost.vue44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/components/TimelinePost.vue b/src/components/TimelinePost.vue
index 4984d1af..411dc5ff 100644
--- a/src/components/TimelinePost.vue
+++ b/src/components/TimelinePost.vue
@@ -141,31 +141,31 @@ export default {
}
},
methods: {
- /**
+ /**
* @function getSinglePostTimeline
* @description Opens the timeline of the post clicked
*/
- getSinglePostTimeline(e) {
- // Display internal or external post
- if (!this.item.local) {
- if (this.item.type === 'Note') {
- window.open(this.item.id)
- } else if (this.item.type === 'Announce') {
- window.open(this.item.object)
- } else {
- Logger.warn("Don't know what to do with posts of type " + this.item.type, { post: this.item })
- }
- } else {
- this.$router.push({ name: 'single-post',
- params: {
- account: this.item.actor_info.preferredUsername,
- id: this.item.id,
- localId: this.item.id.split('/')[this.item.id.split('/').length - 1],
- type: 'single-post'
- }
- })
- }
- },
+ getSinglePostTimeline(e) {
+ // Display internal or external post
+ if (!this.item.local) {
+ if (this.item.type === 'Note') {
+ window.open(this.item.id)
+ } else if (this.item.type === 'Announce') {
+ window.open(this.item.object)
+ } else {
+ Logger.warn("Don't know what to do with posts of type " + this.item.type, { post: this.item })
+ }
+ } else {
+ this.$router.push({ name: 'single-post',
+ params: {
+ account: this.item.actor_info.preferredUsername,
+ id: this.item.id,
+ localId: this.item.id.split('/')[this.item.id.split('/').length - 1],
+ type: 'single-post'
+ }
+ })
+ }
+ },
userDisplayName(actorInfo) {
return actorInfo.name !== '' ? actorInfo.name : actorInfo.preferredUsername
},