Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85628137
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
958 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/components/delete_button/delete_button.js b/src/components/delete_button/delete_button.js
index f29206662c..8d50d303cb 100644
--- a/src/components/delete_button/delete_button.js
+++ b/src/components/delete_button/delete_button.js
@@ -1,17 +1,17 @@
const DeleteButton = {
props: [ 'status' ],
methods: {
deleteStatus () {
const confirmed = window.confirm('Do you really want to delete this status?')
if (confirmed) {
this.$store.dispatch('deleteStatus', { id: this.status.id })
}
}
},
computed: {
currentUser () { return this.$store.state.users.currentUser },
- canDelete () { return this.currentUser && this.currentUser.rights.delete_others_notice || this.status.user.id === this.currentUser.id }
+ canDelete () { return this.currentUser && this.currentUser.rights.delete_others_notice || this.status.account.id === this.currentUser.id }
}
}
export default DeleteButton
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Aug 8, 10:22 AM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1723088
Default Alt Text
(958 B)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment