Commit graph

12 commits

Author SHA1 Message Date
ro
fdaf90b89f added total actions count to DB, action count fix
Added a new field to the locations table for total actions which will be
used to set the active state of location. this will result in data being
parsed and sorted easier instead of doing those calculations on the back
end, so DB queries will be simpler

also fixed actions counts for csv imports
2024-02-09 21:05:33 -06:00
ro
da0ddb3ef0 Plugged in repository class for location data
Seperated data logic for locations and put it into its own repository
class for better organization and readability of controller classes.

Data methods are still simple so no need for an interface class just
yet, but will probably implement at a later date
2024-02-09 14:53:08 -06:00
ro
29c8935bfa Quote clean up CSV export, tweaking action counts
https://tenforward.social/@noracodes reported an issue with the CSV not
rendering properly because of the mix of single and double quotes, so
that's been cleaned up.

Also fixed action sorting which was reversed.
2023-11-12 12:22:22 -06:00
Ro
0d189a4fc3
Seperated silence and block counts
Actions taken against and instance of have been separted into their
respective buckets so they can be display properly rather than simply
grouped together and mislabled.

This gives a better sense of the severity of response per instance.
2023-09-25 13:24:48 -07:00
Ro
572f7c5027
Fix for filtering, quick fix for rating term swap
There was a small syntax bug that was causing the sytem to error out
when resetting rating terms.

Also plugged a bug that was returning locations with ony one block
count, which is below the criteria for instances that should be listed
and shown in search results
2023-09-11 17:40:13 -07:00
Ro
0c2b8bae7c
Added public search API
Finally moved over the public search API from the old version and
updated the about page to show the new data structure

Also tweaked the location update script to change 'defederate' to
'suspend' for the sake of consistency
2023-09-07 14:31:25 -07:00
Ro
565f099c90
Implemented internal blocklist sourcing
Switched from using external CSV exports to having the system talk to
instances directly to build and update the database.

NOTE: Added a new table called Source with the corresponding model to
access it
2023-09-01 15:22:57 -07:00
Ro
44cd545b37
Forgot to encode the json. oops 2023-08-29 14:14:30 -07:00
Ro
fd7a6fd064
Null images hotfix
The archived build errors out when it finds the images json field is
null, so this will replace a null value with an empty array instead.

Should probalby just make images non null and an empty array the default
2023-08-29 14:08:12 -07:00
Ro
7feb76517a
Added blocklist updating, main nav tweaks
Implemented Oliphant's unified tier 3 blocklist and the supplementary
instance audit file that tracks how many times an instance has been
blocked by a trusted sources member. Keeping the update function manual
for now to make sure it works smooth, then well automate so it checks on
    it's on at regular intervals.

NOTE: Lists used are located at the following urls:
https://codeberg.org/oliphant/blocklists/src/branch/main/blocklists/_unified_tier3_blocklist.csv
https://codeberg.org/oliphant/blocklists/src/branch/main/blocklists/other/domain_audit_file.csv

Also simplified the main nav to just include a link to the den index
when logged in
2023-08-24 15:27:14 -07:00
Ro
afce441001
Rewired new location submission form
Brought over the old form for adding new location to the db and the
plugged everything back up using Laravel's eloquent orm (which is pretty
fucking sweet) to re-active that process

NOTE: larvel gets a twitchy when sequencing isn't explicitly set some
minor edits needed to be made to the development DB to prevent a null id
error when inserting new records. this should be done to production when
it's ready as well
2023-08-16 17:52:02 -07:00
Ro
ba79c9924c
Basic Wiring, environment set up
Added some controllers and template pages to test connection with the db
and begin the process of porting over functionality to this version.

Also made some minor tweaks to formatting configs and updated a color in
the css
2023-08-14 13:33:53 -07:00