-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Posts by thread #71
Merged
Merged
Posts by thread #71
Changes from 83 commits
Commits
Show all changes
121 commits
Select commit
Hold shift + click to select a range
1915e8b
fix(models/auto_moderation): schema field types for auto_moderation m…
akinsey 997fda8
refactor(models/auto_moderation): wip implement automoderation algorithm
akinsey 184e9b2
refactor(models/auto_moderation): wip implement automoderation algorithm
akinsey 8dbd8ae
Merge remote-tracking branch 'origin/main' into posts-by-thread
akinsey 4017932
refactor(models/auto_moderation): wip implement moderate automoderati…
akinsey 4f9a827
refactor(models/auto_moderation): wip implement moderate automoderati…
akinsey b30d0f8
refactor(models/auto_moderation): wip implement execute rule actions
akinsey 7a5855b
feat(models/auto_moderation): initial implementation of auto moderate…
akinsey 86926ed
feat(controllers/post): use auto moderator
akinsey 1c9a441
fix(models/auto_moderation): unused variable
akinsey 8fb1483
Merge remote-tracking branch 'origin/main' into posts-by-thread
akinsey 22c8e0f
fix(models/posts): issue with locked and deleted not being set when a…
akinsey 43813cb
fix(json): update json files for post and thread to properly handle d…
akinsey f5e4d0e
fix(plugs/prepare_parse): use plug builder to prevent issue with Post…
akinsey 5cfd473
feat(migrations/posts): add tsv column to posts table
akinsey 3bb8c2f
feat(posts): add trigger for posts tsv
akinsey 2d197ed
feat(plugs/track_ip): implement plug that tracks user ip when making …
akinsey aa6c495
refactor(plugs/track_ip): format code and check if user is authentica…
akinsey 3aee9b2
fix(board_json): clicking on a board errors
unenglishable 9baff84
fix(metric_rank_map): default empty list when metric rank maps not po…
unenglishable 340d52b
refactor(plugs/track_ip): update grammar, refactor syntax
akinsey 82aee56
fix(controllers/user): register_with_verify, use base 16 instead of 64
unenglishable 0cc0e0b
fix(user): implement maybe_confirm? on model, use in controller
unenglishable 6967ceb
feat(plugins/last_active): add last active plugin
akinsey 8333fac
refactor(models/mentions): wip implement mention hooks for post create
akinsey 1944e04
refactor(models/mentions): wip implement username to user id helper.
akinsey 974ceb2
style(models/user): run mix format
akinsey 85e0237
feat(models/users): add way to query user_ids using list of usernames…
akinsey 26372d6
feat(models/mention): initial implementation of username to user id f…
akinsey 08ae9b4
refactor(session+auth): use `id` instead of `user_id` for guardian su…
unenglishable b62eee2
docs(session): update comment about jti
unenglishable 3911d39
feat(session): after save, update guardian resource with session info
unenglishable 7a48c90
refactor(models/user_ip): delete handler for old guardian default res…
unenglishable 73699d1
test(user_socket): update Guardian.encode_and_sign, user_id -> id
unenglishable 6d98f95
style(session): mix format
unenglishable eddd90f
Merge pull request #68 from epochtalk/session-resource-fix
akinsey af8170b
refactor(models/post): update correct tsv database call syntax to be …
akinsey 02024ef
feat(models/mention): add function skeleton for handle_user_mention_c…
akinsey 3682830
feat(models/mention): add helper function to correct text search vect…
akinsey 01d75d3
feat(models/notifications): add function to handle creation of notifi…
akinsey c88d4b7
refactor(models/mention): wip implement handle_user_mention_creation
akinsey d414669
feat(mailer): add email for mention notification
akinsey 7085e19
feat(models/user): get user email by id, for use with mentions
akinsey 5c43fd4
fix(mailer): thread url format and email to field
akinsey 22812ec
feat(models/thread): implement get_first_post_data_by_id for use with…
akinsey 1338d20
feat(models/mention): complete handle_user_mention_creation function,…
akinsey 03335e3
feat(models/user): implement new db function for fetching username by id
akinsey 052133d
feat(models/mention): initial implementation of user_id_to_username
akinsey 50cc843
fix(models/mention): close open parens
unenglishable 11471ac
docs(models/mention): delete double quote
unenglishable 3313312
refactor(models/mention): extend pipe chain
unenglishable 301bd0d
feat(models/mention): update @username_mention_regex
unenglishable f9c8e03
feat(models/mention): add curly version of username mention regex
unenglishable 002d3e6
refactor(models/mention): remove unused conn from user_id_to_username
unenglishable 63cef0d
fix(models/mention): use profile_link user_id_to_username, from paste…
unenglishable 1685917
refactor(models/mention): username_to_user_id, accept user instead of…
unenglishable bb1b858
refactor(models/mention): pass user instead of conn to handle_user_me…
unenglishable 6ab8c2f
feat(controllers/post): integrate mentions in posts controller
unenglishable 982effc
docs(models/mention): remove todo for code blocks
unenglishable 07b3310
feat(models/mention): update username_to_user_id, handle "possible_us…
unenglishable ef507f6
style(): mix format
unenglishable d3ce368
Merge pull request #70 from epochtalk/mentions-regex
akinsey ca978a7
fix(models/mention): resolve credo error caused by over nesting user_…
akinsey d3cd2a9
refactor(controllers/post): update comments
akinsey ed33587
feat(controllers/thread): add hook for watched board to threads by bo…
akinsey e7fed60
refactor(models/thread): add comment with roadmap for finishing port …
akinsey a303ad0
refactor(models/thread): add authorizations todos
akinsey d3ac000
feat(regex): add regex.ex
unenglishable 95ead40
test(regex): add test for regex
unenglishable 0bed58c
test(regex): refactor test names to match guidelines
unenglishable c53a0de
test(regex): add test string attribute
unenglishable a158c2b
test(regex): test regex scan for username_mention
unenglishable 31b1717
test(regex): use Enum.each for checking usernames
unenglishable 5fd9379
test(regex): extract usernames from test, into attribute
unenglishable fd1d540
refactor(controllers/thread): wip implement authorizations for thread…
akinsey 31dae2e
test(regex): check :username_mention_curly
unenglishable 16fd728
test(regex): mix format
unenglishable cffe578
test(regex): check that mention can have a trailing comma
unenglishable 07857c1
test(regex): test mixed case mention
unenglishable 7e5f4ca
refactor(controllers/thread): add user active check to thread create,…
akinsey 7e84f5a
fix(regex): user_id; remove bol from pattern, use 0-9 instead of [:di…
unenglishable 0d45e9e
feat(models/board): implement new db function for thread create autho…
akinsey 159d756
refactor(models/poll): add comment for future task
akinsey 8a0a2a9
feat(helpers/acl): allow user to be a map for allow! function
akinsey 3486a18
test(regex): create test for :user_id pattern
unenglishable 0fe5d03
test(regex): split test for mentions out
unenglishable 4bdf2d3
test(regex): refactor module attribute names for mentions test
unenglishable 2364a24
test(regex): mix format
unenglishable 4659d9c
test(regex): move attributes near mentions test
unenglishable f226160
test(regex): remove unnecessary id_to_username_map
unenglishable b410f31
refactor(models/mention): use EpochtalkServer.Regex.pattern
unenglishable ca36d67
test(models/mention): add mention test
unenglishable 26e4cea
test(models/mention): username_to_user_id/2
unenglishable d0cb639
test(models/mention): test valid mentions get generated
unenglishable 1f31baa
test(models/mention): check that all user ids are present in mentione…
unenglishable 6396f3e
test(models/mention): check behavior on empty user
unenglishable 100daec
test(models/mention): refactor invalid user body
unenglishable 3322c65
test(models/mention): test invalid thread id
unenglishable 9dd102a
test(models/mention): test empty body
unenglishable c60f356
test(models/mention): test user without acl permission
unenglishable 7effba3
test(models/mention): add note for duplicate mention
unenglishable e76818f
test(models/mention): test empty title
unenglishable 75219eb
style(models/mention): mix format
unenglishable e53e4c7
test(models/mention): mix format
unenglishable 7cd2c25
refactor(models/threads): update thread create to take user instead o…
akinsey 2dff9d4
refactor(models/thread): update handle_create_post parameter order fo…
akinsey 5cc3d04
feat(controllers/post): check if user is banned from board before cre…
akinsey 08036f4
feat(controllers/thread): check if user is board banned and that they…
akinsey fe706af
feat(models/poll): implement changeset validator to check for display…
akinsey 6dfba59
refactor(models/polls): mix format)
akinsey 603ddfd
refactor(controllers/thread): run mix format
akinsey c7227f6
fix(tests/thread): fix thread create factory
akinsey 015efe2
feat(controllers/thread): finish porting hooks for thread create rout…
akinsey a93c43d
fix(dialyzer): resolve dialyzer error caused by fetching post out of …
akinsey 8424f8d
refactor(json/thread_json): update comment
akinsey b3547ef
Merge pull request #72 from epochtalk/mentions-regex
akinsey 90006e6
fix(tests/mentions): resolve issue with mentions tests failing after …
akinsey d545e2c
refactor(auto_moderation): clarify module attribute names
unenglishable 20afd1c
docs(models/mention): spelling
unenglishable 075a6bf
refactor(controllers/thread): update errors for specific cases
unenglishable 3af12b7
style(): mix format
unenglishable File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hours_per_day, minutes_per_hour, second_per_minute