mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 11:51:27 -08:00
comment cleanup
This commit is contained in:
parent
48bae31d6c
commit
42df0fe458
2 changed files with 0 additions and 4 deletions
|
@ -617,7 +617,6 @@ user_role = db.Table('user_role',
|
||||||
read_posts = db.Table('read_posts',
|
read_posts = db.Table('read_posts',
|
||||||
db.Column('user_id', db.Integer, db.ForeignKey('user.id'), index=True),
|
db.Column('user_id', db.Integer, db.ForeignKey('user.id'), index=True),
|
||||||
db.Column('read_post_id', db.Integer, db.ForeignKey('post.id'), index=True),
|
db.Column('read_post_id', db.Integer, db.ForeignKey('post.id'), index=True),
|
||||||
# db.PrimaryKeyConstraint('user_id', 'read_post_id')
|
|
||||||
)
|
)
|
||||||
|
|
||||||
class User(UserMixin, db.Model):
|
class User(UserMixin, db.Model):
|
||||||
|
|
|
@ -114,6 +114,3 @@ def url_needs_archive(url) -> bool:
|
||||||
def generate_archive_link(url) -> bool:
|
def generate_archive_link(url) -> bool:
|
||||||
return 'https://archive.ph/' + url
|
return 'https://archive.ph/' + url
|
||||||
|
|
||||||
# marks the post as read for a provided user
|
|
||||||
def mark_post_as_read(post_id: int, user_id: int):
|
|
||||||
pass
|
|
Loading…
Add table
Reference in a new issue