Commit graph

1050 commits

Author SHA1 Message Date
Nenad Vujicic
33dd13457c Improves behavior if note lacks opening comment
Adds checking if note lacks opening comment and if positive, returns nil for both note's author and description.
2025-02-20 23:54:49 +01:00
Tom Hughes
a87cd780d6 Only count reports from distinct users in spam checks 2025-02-16 14:08:22 +00:00
Tom Hughes
f1954a591c Include spam reports on unresolved issues in the spam score 2025-02-15 13:54:04 +00:00
Nenad Vujicic
663459d1c1 Adds index to notes on description column
Adds text index to description column to table notes.
2025-02-12 18:22:50 +01:00
Nenad Vujicic
85bc737dee Switches from comments to all_comments
Switches from using note's .comments to .all_comments. Fixes bug with notes of deleted users without comments, which are filtered out, but the code tries to access the first comment.
2025-02-06 10:58:52 +01:00
Nenad Vujicic
2d0b7b6b87 Adds optional use of note's author and description
Adds optional use of author and description from notes (in case data-migration is done) and author and description from first visible note comment (in case data-migration is not done). Also, adds author association to Note model.
2025-02-04 01:29:45 +01:00
Nenad Vujicic
687429482f Removed author_{id, ip} methods from Note model
Removed author_id, author_ip methods from Note model because they are not used anymore. Also, removed associated unit tests.
2025-01-28 13:47:03 +01:00
Tom Hughes
ebe7cf8d17 Add indexes on user+id to changeset and diary comments 2025-01-21 20:15:56 +00:00
Anton Khorev
420d9da1f9 Create changeset_comments resources for users 2025-01-19 04:24:35 +03:00
Tom Hughes
5eb4c7c0d1 Rename friends rate limit as follows 2025-01-17 23:01:55 +00:00
Tom Hughes
bc630bca87 Rename friends_with to follows 2025-01-17 22:58:35 +00:00
Anton Khorev
3eccf65d8c Merge branch 'pull/5261' 2025-01-17 04:01:22 +03:00
Tom Hughes
0ab8d954ad Merge remote-tracking branch 'upstream/pull/5499' 2025-01-16 18:38:36 +00:00
Tom Hughes
283e7b975b Merge remote-tracking branch 'upstream/pull/5494' 2025-01-16 18:35:36 +00:00
Tom Hughes
473aff084d Fix new rubocop warnings 2025-01-14 18:31:52 +00:00
Nenad Vujicic
f3fc4cdb49 Added description and author_id methods to Note
Added description and author_id (author_ip already exists) methods to Note model. They still use first comment (but will be soon replaced to use records from Note model).
2025-01-14 14:27:02 +01:00
nertc
be11f2075e Refactor friendships controller and model 2025-01-14 11:33:56 +04:00
Nenad Vujicic
16bdcac6d7 Added description, user_id, user_ip columns to notes
Added migration for adding new columns (description, user_id, user_ip) to notes table. Also, migration adds foreign key connecting notes and users tables (using user_id column).
2025-01-13 10:52:38 +01:00
Andy Allan
c47a40c1db
Merge pull request #4316 from AntonKhorev/block-reason-max-length
Set max length of block reason
2024-11-27 17:02:25 +00:00
gobinathal
2d8feb6d79 Remove hardcoded rate limit value
Name is chosen to match the equivalent setting in the configuration
of the rate limits for edits.

Fixes #4427.
2024-11-07 18:33:53 +00:00
Anton Khorev
001fed4fd7 Create note subscription table and model 2024-10-28 02:35:25 +03:00
Tom Hughes
99f220cf69 Fix new rubocop warnings 2024-10-15 18:25:30 +01:00
Andy Allan
5720968323
Merge pull request #5070 from tomhughes/rails72
Update to rails 7.2.0
2024-10-02 17:00:26 +01:00
Tom Hughes
81bb20c3e6 Drop ignore of removed creation_ip column 2024-09-20 19:21:58 +01:00
Tom Hughes
be2678e0dd Update to rails 7.2.0 2024-09-17 20:39:31 +01:00
Tom Hughes
5bac49c51f Ignore the creation_ip column which is no longer used 2024-09-15 21:39:25 +01:00
Tom Hughes
336ad6db03 Add creation_address column to users
This is a properly typed and indexed column that is intended
to replace creation_ip to allow fast queries.
2024-09-10 19:16:03 +01:00
Anton Khorev
7f9cccf038 Remove node.tags_as_hash method 2024-09-03 04:27:07 +03:00
Tom Hughes
17bc0853a0 Drop support for OAuth 1 2024-09-01 03:43:02 +03:00
Anton Khorev
30caa3c09e Set max length of block reason 2024-08-24 15:21:21 +03:00
Anton Khorev
cff4c63713 Add deactivates_at date to user blocks
Block deactivation dates that take needs_view-block views into account were derived using updated_at. This was possible because inactive blocks couldn't be edited and their updated_at date wouldn't change. With editing of inactive blocks enabled deactivation date needs to be saved explicitly.
2024-08-19 14:33:20 +03:00
Anton Khorev
a082caef3c Use casecmp?() instead of casecmp().zero? 2024-07-13 16:00:45 +03:00
Tom Hughes
c38e3d6144 Enforce changeset size limit for API calls which make changes 2024-06-19 00:46:34 +01:00
Nenad Vujicic
a4d3d324ec Add note and diary comments counts to the user profile
Fixes #1643
2024-06-07 21:20:42 +02:00
Anton Khorev
a73e20cd5c Set Open Graph image to first image for diary entries 2024-06-06 17:28:57 +03:00
Tom Hughes
d3d0da0328 Fix new rubocop warnings 2024-05-28 17:39:33 +01:00
Tom Hughes
ca893c1153 Fix new rubocop warnings 2024-05-21 18:21:56 +01:00
Andy Allan
39963d8c70
Merge pull request #4633 from tomhughes/trace-images
Trace image cleanups
2024-05-15 16:38:00 +01:00
Milan Cvetkovic
f8a606869e Remove email confirmation field in signup form 2024-04-27 12:44:09 +01:00
Anton Khorev
b8cf4b59e5 Add (creator_id, id) index to blocks table 2024-04-05 12:21:08 +03:00
Anton Khorev
f19e0c36f5 Remove outdated comment 2024-03-30 11:03:06 +03:00
Anton Khorev
349200fb0a Rename update element consistency check 2024-03-30 10:57:39 +03:00
Anton Khorev
09f6b83486 Refactor update element consistency check 2024-03-30 10:57:27 +03:00
Anton Khorev
29432d5e9f Rename create element consistency check 2024-03-30 10:13:24 +03:00
Anton Khorev
f50ca826aa Refactor create element consistency check 2024-03-30 10:09:55 +03:00
Tom Hughes
91143a5959 Use imported scope to simplify trace controller methods 2024-03-28 17:26:04 +00:00
Anton Khorev
16cc2e75a7 Remove unused includes of ConsistencyValidations 2024-03-28 11:49:49 +03:00
Tom Hughes
c91bd55222 Merge remote-tracking branch 'upstream/pull/4566' 2024-03-13 18:05:48 +00:00
Tom Hughes
d56322a0dd Consistently exclude hidden diaries from spam scoring 2024-03-12 00:13:57 +00:00
Ishmeet Singh
a33174acb8 Add NOT NULL constraints to redaction title and description 2024-03-11 09:27:11 +00:00