mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-02 22:36:33 +00:00
parent
3ee12345ec
commit
51cf580813
1 changed files with 8 additions and 10 deletions
|
@ -294,16 +294,14 @@ class Boost(ActivityMixin, Status):
|
||||||
if not self.boosted_status.user.local:
|
if not self.boosted_status.user.local:
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.boosted_status.user.local and \
|
notification_model = apps.get_model(
|
||||||
self.boosted_status.user != self.user:
|
'bookwyrm.Notification', require_ready=True)
|
||||||
notification_model = apps.get_model(
|
notification_model.objects.create(
|
||||||
'bookwyrm.Notification', require_ready=True)
|
user=self.boosted_status.user,
|
||||||
notification_model.objects.create(
|
related_status=self.boosted_status,
|
||||||
user=self.boosted_status.user,
|
related_user=self.user,
|
||||||
related_status=self.boosted_status,
|
notification_type='BOOST',
|
||||||
related_user=self.user,
|
)
|
||||||
notification_type='BOOST',
|
|
||||||
)
|
|
||||||
|
|
||||||
def delete(self, *args, **kwargs):
|
def delete(self, *args, **kwargs):
|
||||||
''' delete and un-notify '''
|
''' delete and un-notify '''
|
||||||
|
|
Loading…
Reference in a new issue