PantsuDev
1f383b06f5
Merge pull request #360 from majestrate/cache-interface
...
ReAdd cache
2017-05-11 23:42:34 +10:00
Jeff Becker
0e8a3cde3b
Merge branch 'cache-interface' into merge-cache-interface
2017-05-11 09:24:20 -04:00
Eliot Whalan
521064b946
Add vary accept-language header
2017-05-11 23:12:19 +10:00
Jeff Becker
059ea7d2a8
abstract out cache
2017-05-11 09:01:53 -04:00
Eliot Whalan
c1cafb9d9a
Remove broken caching stuff
2017-05-11 22:22:49 +10:00
akuma06
a17004360f
Merge pull request #357 from majestrate/scraper
...
fixes
2017-05-11 13:50:46 +02:00
Jeff Becker
57895251a3
fix torrent swarm ordering and add timeouts for udp scrape
2017-05-11 07:40:50 -04:00
akuma06
9f2d0f1962
New translation function and time depends on translation
2017-05-11 13:15:52 +02:00
akuma06
e8774abf21
Updated search
...
When in a user page and clicked on more torrents, show a list navigable
of the user torrent
On that list, we can make advance search (categories, order, ...)
Moderation search reimplemented
Clicking on user (id) in the torrent list redirect to the list of the
user torrents
Ability to search within the user torrents
2017-05-11 03:52:42 +02:00
Eliot Whalan
65ee41a10b
Add orderby seeders/leechers/completed
2017-05-11 10:26:58 +10:00
wranai
12bb79b4f5
Fixing the status filter for good ( #326 )
...
"Trusted" should include A+ (a.k.a "Trusted A+") torrents as well.
2017-05-10 18:13:54 -05:00
TUSF
cce29b5797
This is why I should test before committing.
...
Probably missed more...
2017-05-10 16:48:33 -05:00
TUSF
8677871e94
Made a typo with this extra close-parenthesis...
2017-05-10 16:45:47 -05:00
TUSF
d79ae33e0e
Woops
...
Greater-than symbols were being filtered out by the sanitizer as they were saved to the database. Hopefully this will fix 'em. I considered using regexp, but thought that would be complete overkill.
2017-05-10 16:30:46 -05:00
Sirakain
6c479f33be
Filter remakes excludes from SQL query, not A+ ( #309 )
...
Fixes #286
2017-05-10 16:09:38 -05:00
Ramon Dantas
c84140964b
Add language selector ( #298 )
2017-05-10 14:45:39 -05:00
ayame-git
1bf4012eb2
yea..
2017-05-10 21:42:20 +03:00
akuma06
45e6fc109f
Edit profile unborked, please don't bork it anymore :'(
2017-05-10 20:24:37 +02:00
Jeff Becker
73f77f1624
properly handle os.Interrupt Signal
...
This makes systemd not put unit into fail mode when stopping
INFO:
* make sure to use signals.RegisterCloser for everything that should be closed on interrupt
* for any net.Listeners created make sure to wrap them with network.WrapListener and register with signals.RegisterCloser
2017-05-10 08:23:29 -04:00
bakape
58ca34132c
cache: Add total torrent count and fixes
2017-05-10 12:32:49 +03:00
bakape
6bf7ee3438
Search query caching
2017-05-10 12:03:49 +03:00
Chris MacLeod
c9b72206a5
Consistency, formatting, error checking, cleanup, and a couple bug fixes ( #245 )
...
* Checkpoint: it builds
The config, db, model, network, os, and public packages have had some
fixes to glaringly obvious flaws, dead code removed, and stylistic
changes.
* Style changes and old code removal in router
Router needs a lot of work done to its (lack of) error handling.
* Dead code removal and style changes
Now up to util/email/email.go. After I'm finished with the initial sweep
I'll go back and fix error handling and security issues. Then I'll fix
the broken API. Then I'll go through to add documentation and fix code
visibility.
* Finish dead code removal and style changes
Vendored libraries not touched. Everything still needs security fixes
and documentation. There's also one case of broken functionality.
* Fix accidental find-and-replace
* Style, error checking, saftey, bug fix changes
* Redo error checking erased during merge
* Re-add merge-erased fix. Make Safe safe.
2017-05-09 21:34:40 -05:00
PantsuDev
9e09dff4d4
Merge pull request #223 from ElegantMonkey/load-translations
...
Load translations from folder
2017-05-10 06:45:33 +10:00
PantsuDev
d02672add8
Merge pull request #217 from sfan5/installgentoo
...
Various changes
2017-05-10 06:44:10 +10:00
ElegantMonkey
f1f86e8d6d
Fallback to default language when a translation is missing
2017-05-09 15:25:56 -03:00
akuma06
bbffb24ae8
Merge pull request #214 from majestrate/make-rss-fast-again
...
make rss fast again
2017-05-09 18:53:57 +02:00
akuma06
8aa8a0593c
Added delete account and edit profile
2017-05-09 17:47:12 +02:00
Jeff
18d6ad3992
make rss fast again :^)
2017-05-09 11:07:42 -04:00
sfan5
fb07da18ec
Display uploader name with link to profile page
2017-05-09 16:21:56 +02:00
bakape
839bc46163
Workaround for SQLite search
...
At least we can test it in development now.
2017-05-09 15:31:47 +03:00
bakape
ec8bd90c4e
Merge branch 'master' of https://github.com/ewhal/nyaa into refactor-search
2017-05-09 14:32:10 +03:00
bakape
a0ae1f7e6a
Refactor search
...
Optimise, error handling and avoid some exploits
2017-05-09 14:31:58 +03:00
Eliot Whalan
3c018c4988
Move markdown stuff to it's own function
2017-05-09 17:28:29 +10:00
Eliot Whalan
66a2adecfc
Merge branch 'less-realloc' of git://github.com/bakape/nyaa into bakape-less-realloc
2017-05-09 13:16:42 +10:00
ayame-git
d3fc3f8b7a
Revert "autism"
...
This reverts commit 59b1e2bb5f
.
2017-05-09 06:14:31 +03:00
PantsuDev
7ab4d45505
Merge branch 'master' into less-realloc
2017-05-09 13:14:20 +10:00
ayame-git
ecaa9f765a
autism
2017-05-09 05:44:08 +03:00
akuma06
86a2f3f110
Added User Search Functionality
2017-05-09 04:30:25 +02:00
ayame-git
711dc5fda0
category and status search not workign
2017-05-09 05:29:26 +03:00
Austin
81fa4aed00
what in import duplication
2017-05-08 21:07:43 -05:00
akuma06
84cf511fe3
Fixed User
...
Profile Page, badge menu, every thing before previous commit (except
email)
Added Logout
2017-05-09 03:37:12 +02:00
bakape
66473d7ec8
Merge branch 'master' of https://github.com/ewhal/nyaa into less-realloc
2017-05-09 02:57:10 +03:00
bakape
d0d44a4849
Death to reallocations!
2017-05-09 02:56:57 +03:00
ElegantMonkey
caa3168c90
Revert changes to translation.go
2017-05-08 20:44:41 -03:00
sfan5
e3a271cca7
Revert "Added Profile page"
...
This reverts commit 5860cf1d79
.
2017-05-08 22:50:25 +02:00
sfan5
9314cf1a47
Revert "Added user torrents search"
...
This reverts commit 65a543478a
.
2017-05-08 22:50:25 +02:00
akuma06
dff5ca06c6
Added user torrents search
2017-05-08 19:42:18 +02:00
akuma06
cdf8cccc8d
Added Profile page
2017-05-08 18:56:40 +02:00
Jeff Becker
3349a6d908
remove sql injections
2017-05-08 10:39:41 -04:00
Eliot Whalan
d1ad555450
Possibly fix search
2017-05-09 00:13:53 +10:00
Eliot Whalan
eca5079080
Optimize sql queries
2017-05-08 23:50:18 +10:00
sfan5
b780b3799b
Revert "Merge pull request #153 from majestrate/faster-rss"
...
This reverts commit a9d19644c9
, reversing
changes made to 4f14dfb04f
.
2017-05-07 23:41:44 +02:00
Eliot Whalan
74d27b0086
Merge pull request #165 from ElegantMonkey/read-language-from-request
...
Read the user language from the HTTP request
2017-05-08 07:18:22 +10:00
Eliot Whalan
003951f902
Merge branch 'master' into faster-rss
2017-05-08 07:16:37 +10:00
ElegantMonkey
2b2086b8b3
Remove unneeded import
2017-05-07 18:08:38 -03:00
ElegantMonkey
b10cdde34a
Read the user language preferences from the HTTP request
2017-05-07 18:05:41 -03:00
sfan5
ae89508f23
Search case-sensitivity hotfix
2017-05-07 23:01:06 +02:00
keo
6e50f44799
Merge pull request #159 from sfan5/changes
...
Changes
2017-05-07 22:22:42 +03:00
akuma06
830c824fbc
Corrected possible double entry account (username, email)
2017-05-07 21:14:32 +02:00
sfan5
a17813f01b
Fix filesize formatting edge cases
...
1024 bytes should be "1.0 KiB" not "1024.0 B"
2017-05-07 21:06:20 +02:00
akuma06
65e24c25e9
Fixed typo
2017-05-07 20:21:46 +02:00
akuma06
4df2268094
Added Form Validation
...
Display of error messages
2017-05-07 19:59:38 +02:00
Jeff Becker
28ef70c960
make rss feeds faster
2017-05-07 13:50:55 -04:00
akuma06
9a73f8ad58
Merge branch 'master' of https://github.com/ewhal/nyaa
2017-05-07 14:53:19 +02:00
akuma06
1eaa0c1b44
Fixed User Captcha
...
Templates are now in reload of template.go
Captchas are generated correctly on register page
Corrected typo
2017-05-07 14:53:01 +02:00
Eliot Whalan
c637181ff9
Merge pull request #136 from sfan5/upl
...
Fixes & Features for torrent uploads
2017-05-07 22:39:27 +10:00
Jeff Becker
1e567c74ca
wire up signal handlers for sighup
2017-05-07 08:07:20 -04:00
sfan5
025cfff297
Show unknown filesizes correctly
2017-05-07 13:55:35 +02:00
sfan5
f9b29af311
Better / fixed validation of uploaded torrent files
2017-05-07 13:53:51 +02:00
Eliot Whalan
cd3dae3d5e
Merge pull request #129 from azhao12345/upload-changes
...
Implement some stuff needed for upload
2017-05-07 11:59:31 +10:00
akuma06
00b08b71cd
Multi language support User Registration page finished
2017-05-07 03:34:16 +02:00
Andrew Zhao
b922938c27
use util to generate magnets
2017-05-06 18:10:35 -07:00
Andrew Zhao
04bd6ff4c5
get the proper magnet and infohash for upload
2017-05-06 17:48:24 -07:00
akuma06
f88b4656a1
Fixed Typo + Added multi language support
...
Multi language for User package
2017-05-07 02:32:32 +02:00
akuma06
68a7b5922a
Merge branch 'master' into master
2017-05-06 22:17:13 +02:00
akuma06
45eb38ee87
Merge branch 'master' of https://github.com/akuma06/nyaa.git
...
Conflicts:
util/email/email.go
2017-05-06 22:16:05 +02:00
akuma06
30a53a79ec
Forgot files
2017-05-06 22:14:02 +02:00
akuma06
d52532c927
Update email.go
2017-05-06 21:56:52 +02:00
akuma06
48e854766c
Update email.go
2017-05-06 21:54:08 +02:00
akuma06
70a5d4803f
Update crypto.go
2017-05-06 21:53:42 +02:00
sfan5
4237803422
Sorting by torrent size
2017-05-06 21:50:38 +02:00
akuma06
03f455d6ce
Update email.go
2017-05-06 21:47:42 +02:00
akuma06
1055744920
Removed unused packages
2017-05-06 21:25:16 +02:00
akuma06
5ef953ff55
User Package (WIP)
...
Added services and utils needed
2017-05-06 21:21:39 +02:00
akuma06
e23ceeab37
Merge branch 'master' of https://github.com/ewhal/nyaa
2017-05-06 20:08:38 +02:00
akuma06
61ac1bb7c3
Added tool for sending emails
2017-05-06 20:07:03 +02:00
akuma06
7b59943bd6
Update modelHelper.go
2017-05-06 18:58:48 +02:00
akuma06
9f961cdffa
Update modelHelper.go
2017-05-06 18:55:33 +02:00
akuma06
8313e1db7e
Added multiple type of variables
...
Should work now
2017-05-06 18:52:27 +02:00
akuma06
9cf6157846
Hopes that work
2017-05-06 18:15:02 +02:00
akuma06
964795b6cd
Modified package
2017-05-06 18:02:54 +02:00
akuma06
148f70b53f
Models for User, Role and Comment
...
modelHelper for getting value from request and apply it to a Form
Getting value from a Form and apply to a Model
2017-05-06 17:55:02 +02:00
sfan5
1ff8ff1a12
filesize as int
2017-05-06 17:36:28 +02:00
Eliot Whalan
d37b203338
Merge pull request #85 from majestrate/master
...
add torrent file parsing for upload form
2017-05-06 21:53:09 +10:00
Jeff Becker
5c5cbd03fd
remove unit test
2017-05-06 07:50:24 -04:00
Jeff Becker
11a6fce027
add torrent file parsing for upload form
...
* vendor bencode library github.com/zeebo/bencode
* add metainfo parsing library from XD
* fix up upload handler so to be less cluttered
2017-05-06 07:43:24 -04:00
Eliot Whalan
21db440d20
Add max search limit
2017-05-06 20:41:48 +10:00
akuma06
6b1196f12c
Merge branch 'master' of https://github.com/ewhal/nyaa
...
Conflicts:
main.go
Resolved conflicts with new merge
2017-05-05 22:30:56 +02:00
akuma06
9739610311
Separated Routes and handler from Main
...
Everything is in the router folder in different file
2017-05-05 16:39:15 +02:00
akuma06
f6709f9ace
Merge branch 'master' of https://github.com/ewhal/nyaa
...
Conflicts:
main.go
models.go
2017-05-05 14:51:19 +02:00