forked from forks/microblog.pub
Fix formatting
This commit is contained in:
parent
a49ba89a7e
commit
795ef0990c
1 changed files with 8 additions and 2 deletions
|
@ -198,7 +198,10 @@ class _20190830_FollowFollowBackMigration(Migration):
|
||||||
for data in find_activities({**by_type(ap.ActivityType.ACCEPT), **in_inbox()}):
|
for data in find_activities({**by_type(ap.ActivityType.ACCEPT), **in_inbox()}):
|
||||||
try:
|
try:
|
||||||
update_one_activity(
|
update_one_activity(
|
||||||
{**by_type(ap.ActivityType.FOLLOW), **by_remote_id(data["meta"]["object_id"])},
|
{
|
||||||
|
**by_type(ap.ActivityType.FOLLOW),
|
||||||
|
**by_remote_id(data["meta"]["object_id"]),
|
||||||
|
},
|
||||||
upsert({MetaKey.FOLLOW_STATUS: FollowStatus.ACCEPTED.value}),
|
upsert({MetaKey.FOLLOW_STATUS: FollowStatus.ACCEPTED.value}),
|
||||||
)
|
)
|
||||||
# Check if we are following this actor
|
# Check if we are following this actor
|
||||||
|
@ -221,7 +224,10 @@ class _20190830_FollowFollowBackMigration(Migration):
|
||||||
for data in find_activities({**by_type(ap.ActivityType.REJECT), **in_inbox()}):
|
for data in find_activities({**by_type(ap.ActivityType.REJECT), **in_inbox()}):
|
||||||
try:
|
try:
|
||||||
update_one_activity(
|
update_one_activity(
|
||||||
{**by_type(ap.ActivityType.FOLLOW), **by_remote_id(data["meta"]["object_id"])},
|
{
|
||||||
|
**by_type(ap.ActivityType.FOLLOW),
|
||||||
|
**by_remote_id(data["meta"]["object_id"]),
|
||||||
|
},
|
||||||
upsert({MetaKey.FOLLOW_STATUS: FollowStatus.REJECTED.value}),
|
upsert({MetaKey.FOLLOW_STATUS: FollowStatus.REJECTED.value}),
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in a new issue