aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2023-11-10 13:31:45 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2023-11-10 13:31:45 +0000
commit60cb173b61a9ffa4336a0ace7c90622834efd98e (patch)
treee93c8fcd0e2b99233659c0f3d204bce4bf13fb68 /src/components/status/status.js
parent954d03150f1dc097b9950cfef2fed2e4f55b6442 (diff)
parent55d4ea3643a3bdb9e350c559d2d9a5f8608a7910 (diff)
Merge branch 'neetzsche/display-latest-scrobble' into 'develop'
Display the latest scrobble under a user's name See merge request pleroma/pleroma-fe!1865
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index e722a635..a339694d 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -39,7 +39,8 @@ import {
faThumbtack,
faChevronUp,
faChevronDown,
- faAngleDoubleRight
+ faAngleDoubleRight,
+ faPlay
} from '@fortawesome/free-solid-svg-icons'
library.add(
@@ -59,7 +60,8 @@ library.add(
faThumbtack,
faChevronUp,
faChevronDown,
- faAngleDoubleRight
+ faAngleDoubleRight,
+ faPlay
)
const camelCase = name => name.charAt(0).toUpperCase() + name.slice(1)
@@ -415,6 +417,12 @@ const Status = {
},
shouldDisplayQuote () {
return this.quotedStatus && this.displayQuote
+ },
+ scrobblePresent () {
+ return !this.mergedConfig.hideScrobbles && this.status.user.latestScrobble && this.status.user.latestScrobble.artist
+ },
+ scrobble () {
+ return this.status.user.latestScrobble
}
},
methods: {