mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
Fix for bug that was preventing text-only posts from processing
This commit is contained in:
parent
ba0f7bac48
commit
0da0845abe
1 changed files with 2 additions and 2 deletions
|
@ -2007,8 +2007,8 @@ def create_post(activity_log: ActivityPubLog, community: Community, request_json
|
|||
|
||||
if post.url:
|
||||
post.url = remove_tracking_from_link(post.url) # moved here as changes youtu.be to youtube.com
|
||||
if is_video_hosting_site(post.url):
|
||||
post.type = POST_TYPE_VIDEO
|
||||
if is_video_hosting_site(post.url):
|
||||
post.type = POST_TYPE_VIDEO
|
||||
db.session.add(post)
|
||||
post.ranking = post_ranking(post.score, post.posted_at)
|
||||
community.post_count += 1
|
||||
|
|
Loading…
Add table
Reference in a new issue