Commit Graph

88 Commits

Author SHA1 Message Date
rubic0n
b1445d09b6 Remove 40KB of allocations (4,100 objects) from home feed
(When using dummy data)

* to_s(16) allocates a string per character
  Instead of converting the ord to hex and determining if the hex
  is over 2 characters long, just see if the ord is over 255.
* .match allocates a MatchData instance and sets all sorts of backrefs
  ($1, $2, etc). match? just returns a boolean.
2021-02-18 00:45:21 -06:00
rubic0n
a623252c59 Convert to boolean in C code
casecmp?(str) is 1.5x faster than casecmp(str).zero?
It's 1 less method call in Ruby, and the C code can convert
to boolean, rather than returning a number and determining
if it's zero.
2021-02-17 23:25:10 -06:00
Fosco Marotto
88d8bd2816 Merge remote-tracking branch 'origin/load_rails_6_0_defaults' into develop 2021-02-16 15:10:01 -05:00
mgabdev
e3af1b4a26 Updated LinkBlock checks for if status text contains blocked domain
• Updated:
- LinkBlock checks for if status text contains blocked domain
- normalize_link to use domain instead of normalized_host

• Added:
- normalize_link_domain to check for if entire domains are blocked or not for spam
2021-02-11 00:01:45 -05:00
Free Speech Forever
473c48b2aa Replace Makara with an initial Rails 6 role based splitting method. 2021-02-09 19:38:10 +00:00
Fosco Marotto
34a888ca10 Change weighting for top_order 2021-02-04 12:37:01 -05:00
Fosco Marotto
b705c82304 Update mention_html formatter again. 2021-02-03 13:26:32 -05:00
Fosco Marotto
8d9db14121 Revert "Remove local checks from formatter"
This reverts commit c30f600f0969108a9a6902a5a116a4c6d7441e62.
2021-02-03 13:14:22 -05:00
Fosco Marotto
e4a214a0c4 Revert "deleted unneccessary looping queries in EntityCache"
This reverts commit d20330f39133bcc4571ffdc1c518a3dcba93baff.
2021-02-03 13:13:29 -05:00
Fosco Marotto
c30f600f09 Remove local checks from formatter 2021-02-03 13:07:37 -05:00
admin
fa9f0ce6f3 Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into develop 2021-02-03 11:56:36 -05:00
admin
d20330f391 deleted unneccessary looping queries in EntityCache 2021-02-03 11:56:22 -05:00
Fosco Marotto
584482f325 Fix explore page correctly. 2021-02-03 11:55:57 -05:00
Fosco Marotto
4e0605165d Fix explore page. 2021-02-03 11:32:25 -05:00
Fosco Marotto
b06afbcd4a [spam] Hide statuses from accounts marked as spam. 2021-02-02 15:17:04 -05:00
rubic0n
bee832d4ef Fix Zeitwerk load error for SanitizeConfig
"expected file app/lib/sanitize_config.rb to define constant
SanitizeConfig"
2021-01-31 17:39:13 -06:00
rubic0n
2b9144d50c Fix "NameError: uninitialized constant Exceptions"
Zeitwerk operates on files in the autoload paths. Since the
entire "app" directory is autoloaded, all files inside need to
play by Zeitwerk's rules. Zeitwerk expects that a file named
"exceptions.rb" would define a constant named "Exceptions".

The exceptions file doesn't follow Zeitwerk's conventions.
The easiest way to solve this is to move the execptions out of
app/lib and into lib, where `require_relative` doesn't have
Zeitwerk taken into account.
2021-01-31 17:39:13 -06:00
mgabdev
154aaecc5f Updated StatusFilter private scope functions
• Updated:
- StatusFilter private scope functions
2021-01-25 15:58:52 -05:00
Fosco Marotto
81489b7a17 [explore] Remove group posts from explore page. 2021-01-25 02:35:10 -05:00
Fosco Marotto
1c647b0b06 [reset] cleanup 2021-01-24 13:50:51 -05:00
admin
5d13162204 Revert "Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into develop"
This reverts commit ccf98d200255e461df98a6665de8533cebfa7f51
2021-01-24 16:29:57 +00:00
Fosco Marotto
59b1752797 [groups collection] disable custom phrase muting temporarily 2021-01-23 21:38:17 -05:00
Fosco Marotto
645def5f96 SessionActivation and groups query change 2021-01-23 18:21:31 -05:00
Fosco Marotto
940b6eb392 [group_collection] reduce date limit 2021-01-23 03:16:57 -05:00
Fosco Marotto
958e8aad3a [group_collection] Change to -my groups- timeline 2021-01-23 03:13:47 -05:00
Fosco Marotto
e9cf46b4bc Reverting home timeline changes 2021-01-21 18:05:24 -05:00
Fosco Marotto
0369a1b9fb Fix 2021-01-21 17:43:05 -05:00
Fosco Marotto
852d2f78e9 [sorting query builder] Adjust filtering 2021-01-21 17:37:12 -05:00
Fosco Marotto
8413ca93a4 [home feed] Changes to reduce database use. 2021-01-21 17:09:46 -05:00
mgabdev
51fa8f2eb4 Added/Updated admin dashboard tables
• Added:
- New Account filtering
- PreviewCard viewing/sorting/filtering deleting (todo)
- DeletePreviewCardWorker, Service
- Status viewing/sorting/filtering deleting
- ChatMessage viewing/sorting/filtering deleting (todo)
- Account > Follows view

• Updated:
- LinkBlock to sort alphabetically
- Groups to be under "Moderation" instead of "Admin" in navigation.rb
- Status in admin to have group name/link
- Reports reset button
- Group filtering/sorting
- LinkBlock filtering/sorting
- Account now has bio and few more data points in dashboard
2021-01-19 01:25:25 -05:00
Fosco Marotto
002441af1f [redis] More connection pooling changes 2021-01-17 17:36:20 -05:00
mgabdev
7bc93ff98f Removed all occurances of "theme" from backend, settings
• Removed:
- all occurances of "theme" from backend, settings

Theme is set in WebSettings through client. And set in <Display />.
2021-01-15 14:35:50 -05:00
Fosco Marotto
5e6211a4f4 [feed manager] Gut the feed manager 2021-01-12 00:17:19 -05:00
Fosco Marotto
381a5bacc6 [sorting query builder] from 30 days to 5 years for date_limit 2020-12-30 12:04:28 -05:00
mgabdev
91c1b769c3 Fixed issues with ExploreController, SortingQueryBuilder
• Fixed:
- issues with ExploreController when no account exists
- SortingQueryBuilder with correct status_stat path
2020-12-24 13:41:00 -05:00
mgabdev
620f50752f Updated SortingQueryBuilder for ExploreTimeline, GroupCollectionTimeline, GroupTimeline
• Updated:
- SortingQueryBuilder for ExploreTimeline, GroupCollectionTimeline, GroupTimeline

• TODO
- Test on a lot of data to ensure no repeats
- Test reducers/timeline updates to appending and concating non status.id sorted results
2020-12-24 13:34:14 -05:00
mgabdev
7dd71a06ca Updated StatusSharePopover -> SharePopover, Added group, account share
• Updated:
- StatusSharePopover -> SharePopover

• Added:
- group, account share
- group url in routes.rb
- group url in GroupSerializer.rb
- share buttons in ProfileOptionsPopover, GroupOptionsPopover
2020-12-24 13:27:55 -05:00
mgabdev
5b40f62498 Fixed issue with status url not resolving to host
• Fixed:
- issue with status url not resolving to host
- fixes issue with status copy url in share menu
2020-12-23 00:10:34 -05:00
mgabdev
34f6a1ab5b Progress
new MediaAttachment video style :playable for mp4 to make videojs work with multiple files, hiding albums, hiding bookmark collections. may need tweaks on mediaattachment for mov and other formats : todo :
2020-12-22 12:11:22 -05:00
mgabdev
67d94858dc Progress
hashtag in top of tag feed, scroll to comment, chat blocking, muting, filtering
2020-12-21 18:30:46 -05:00
mgabdev
75d52c841e Progress 2020-12-15 19:31:30 -05:00
mgabdev
6c13144fbc Progress 2020-12-09 15:02:43 -05:00
mgabdev
f9c1246fac Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into feature/removing_ruby_junk 2020-12-09 11:10:10 -05:00
mgabdev
000363d143 Updated TagManage normalize_link function
• Updated:
- TagManage normalize_link function
2020-12-09 11:03:49 -05:00
mgabdev
586935f07f Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into feature/removing_ruby_junk 2020-12-09 00:00:35 -05:00
mgabdev
c18991f174 Added LinkBlock functionality in admin
• Added:
- LinkBlock functionality in admin
2020-12-08 23:19:10 -05:00
mgabdev
f6a7422704 Progress on DMs responsiveness
Progress on DMs responsiveness
2020-12-03 22:27:09 -05:00
mgabdev
137a36b810 Progress with DMs
Progress with DMs
2020-12-03 17:13:11 -05:00
mgabdev
9a43c51085 Progress on dms, code cleanup
Progress on dms, code cleanup
2020-12-02 23:22:51 -05:00
mgabdev
b4e370d3d3 Commiting 2020-11-25 15:22:37 -06:00