Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

136 commits

Auteur SHA1 Message Date
Eliot Whalan
cec71bd759 Add in support for commenting on sukebei 2017-05-16 12:53:02 +10:00
Ramon Dantas
f351c2b047 Store torrent FileList info as bencoded data. (#530)
Use this instead of joining with forward-slashes because it's possible
that a torrent uses "foo/bar" as a filename or part of the directory list.
2017-05-16 07:45:47 +10:00
ElegantMonkey
7d8cbe1393 Add Upload and Download limiters, rely on unique_index for avoiding duplicates
The FileList that is read with GetTorrents is empty, as it's only loaded with
GetTorrentById. So, always insert the new FileList on the database, and rely on
the unique_index to avoid duplications.
2017-05-14 11:35:03 -03:00
ElegantMonkey
839e6068df Add FileList view to view.html template
Also added the code for FileList loading on torrentService.
2017-05-14 10:19:19 -03:00
ElegantMonkey
80034bb52b Also read file lists from metadata, fix Length == 0 2017-05-13 23:12:18 -03:00
sfan5
b2581f549b Display human-readable report reason in modpanel
Also fixes the "list all torrent reports" subpage
2017-05-12 20:43:38 +02:00
sfan5
dc509ff18c Stateless cookie auth 2017-05-12 12:40:31 +02:00
Eliot Whalan
bcaac0961f Revert "Stateless cookies (#372)"
This reverts commit 2f06fb8fa1.
2017-05-12 16:42:15 +10:00
akuma06
44508c9f82 Fix comment model 2017-05-12 01:40:02 +02:00
sfan5
019f37dc4d Stateless cookies (#372)
* Remove eddie4.nl tracker

It resolves to the same IP address as leechers-paradise which we already have.

* Remove database usage from cookie auth

* Hide "Remember Me" as it doesn't work yet
2017-05-11 16:18:56 -05:00
akuma06
9f2d0f1962 New translation function and time depends on translation 2017-05-11 13:15:52 +02:00
sfan5
64622c3601 Make comment date display consistent with other date displays 2017-05-11 11:37:10 +02:00
Eliot Whalan
fec023e404 Add display of seeders/peers/completed to view 2017-05-11 09:31:10 +10:00
Eliot Whalan
30d4ba5e9c Merge branch 'scraper' of git://github.com/majestrate/nyaa into majestrate-scraper 2017-05-11 09:11:54 +10:00
ayame-git
d2c2de2ef9 ... 2017-05-11 01:10:42 +03:00
Jeff Becker
c6427ba600 Merge remote-tracking branch 'origin/master' into scraper 2017-05-10 18:08:10 -04:00
Jeff Becker
604cf57677 make it work 2017-05-10 18:06:21 -04:00
sfan5
9c562018e5 Link to user page from comment section 2017-05-10 23:53:30 +02:00
ayame-git
c0e2eaa56a Merge branch 'master' of github.com:ewhal/nyaa 2017-05-10 23:31:27 +03:00
ayame-git
9b5515dcb8 🤔 2017-05-10 23:31:15 +03:00
akuma06
3acb410af7 Merge pull request #302 from sfan5/fixayy
Fixes & Features (as always)
2017-05-10 22:24:33 +02:00
ayame-git
6198c4a618 fixed dup renchon on report 2017-05-10 23:24:06 +03:00
sfan5
64473e68ad Fix magnet links 2017-05-10 22:11:37 +02:00
ayame-git
8373bce02f unborked report list 2017-05-10 22:09:37 +03:00
ayame-git
1bf4012eb2 yea.. 2017-05-10 21:42:20 +03:00
Jeff Becker
0f582c1197 Merge remote-tracking branch 'origin/master' into scraper 2017-05-10 13:29:56 -04:00
Jeff Becker
1089883ed5 initial 2017-05-10 13:29:35 -04:00
akuma06
032688f532 Fixed 2017-05-10 16:43:50 +02:00
Eliot Whalan
5de19ec928 add md5 gorm column back 2017-05-10 21:57:31 +10:00
sfan5
1805f0f6aa Fix old comments 2017-05-10 13:34:25 +02:00
sfan5
775f9c15ad Display username of old uploads alongside れんちょん 2017-05-10 13:32:45 +02:00
sfan5
ee6aea139f Add FIXMEs 2017-05-10 13:09:23 +02:00
bakape
58ca34132c cache: Add total torrent count and fixes 2017-05-10 12:32:49 +03:00
bakape
5d40d02820 Merge branch 'master' of https://github.com/ewhal/nyaa into search-caching 2017-05-10 12:08:02 +03:00
bakape
8b56f2e76e Merge branch 'master' of https://github.com/ewhal/nyaa into search-caching 2017-05-10 11:47:06 +03:00
Your Name
e03ab87665 add delet link 2017-05-10 08:37:52 +00:00
bakape
7ff8e97c9d Framework for caching []model.Torrents 2017-05-10 11:27:17 +03:00
Your Name
e8c133fc69 display reports properly 2017-05-10 07:57:55 +00:00
Your Name
b5adfb8eb4 Merge remote-tracking branch 'tom/mod' 2017-05-10 07:32:01 +00:00
Your Name
8d9605def3 delete shit 2017-05-10 07:10:23 +00:00
Your Name
c5da59234f idgaf about consistency dont fucking fuck all the relations 2017-05-10 05:17:11 +00:00
tomleb
1ddd4c12f8 Start mod system 2017-05-10 00:34:00 -04: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
akuma06
9bbd544a20 Added Follow&Unfollow 2017-05-10 03:16:36 +02:00
sfan5
5bb6244564 Don't generate gravatar hash if no email 2017-05-09 17:20:19 +02:00
sfan5
30f3b0c6eb Fix creating of useless table 2017-05-09 17:14:13 +02:00
sfan5
128b070968 Maybe fix gravatar 2017-05-09 16:50:29 +02:00
sfan5
3b65df9cdd Prepare for storage of uploaded .torrent files 2017-05-09 16:42:12 +02:00
sfan5
fb07da18ec Display uploader name with link to profile page 2017-05-09 16:21:56 +02:00
sfan5
5d57233882 Cleanup of user model 2017-05-09 12:16:41 +02:00
Eliot Whalan
3c018c4988 Move markdown stuff to it's own function 2017-05-09 17:28:29 +10:00
Eliot Whalan
be06251bba Add markdown support for descriptions and comments 2017-05-09 16:58:39 +10:00
Andrew Zhao
1c44a24ab0 make user torrent list display 2017-05-08 22:21:14 -07:00
Eliot Whalan
d0069b6249 Add website links 2017-05-09 14:49:59 +10:00
PantsuDev
7ab4d45505 Merge branch 'master' into less-realloc 2017-05-09 13:14:20 +10:00
ayame-git
0753899cc7 autism 2 electric boogaloo 2017-05-09 05:45:25 +03:00
ayame-git
ecaa9f765a autism 2017-05-09 05:44:08 +03: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
d0d44a4849 Death to reallocations! 2017-05-09 02:56:57 +03:00
sfan5
3a44a1b6ae Cleanup 2017-05-08 22:50:56 +02:00
sfan5
173dc9e34c Remove unused code 2017-05-08 22:50:56 +02:00
sfan5
5d36bba34d Make comments work 2017-05-08 22:50:56 +02:00
sfan5
a3d13f768a Switch to new schema: make it compile 2017-05-08 22:50:56 +02:00
sfan5
e3a271cca7 Revert "Added Profile page"
This reverts commit 5860cf1d79.
2017-05-08 22:50:25 +02:00
akuma06
cdf8cccc8d Added Profile page 2017-05-08 18:56:40 +02:00
akuma06
2be8fb2b7c Cleaned up User Model 2017-05-08 14:28:02 +02:00
Andrew Zhao
b232018e6b initial implementation of making comments 2017-05-07 20:34:12 -07:00
Andrew Zhao
2e3c45cbc7 implemented comments and display 2017-05-07 19:06:11 -07:00
akuma06
9bc75c86f3 Added logged badge + new User variable in each template variables 2017-05-08 01:46:30 +02:00
sfan5
025cfff297 Show unknown filesizes correctly 2017-05-07 13:55:35 +02:00
Andrew Zhao
f9884c40e9 throw in the description with some sanitizatoin 2017-05-06 22:18:41 -07:00
Andrew Zhao
637711fb9d start implementing upload 2017-05-06 21:26:09 -07: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
Andrew Zhao
b922938c27 use util to generate magnets 2017-05-06 18:10:35 -07:00
tomleb
19efd94979 Fix search functionality, unzlib won't be needed in the future 2017-05-06 19:02:02 -04:00
tomleb
dcccb7ee1b Remove categories and subcategories queries
This commit removes usage of Categories queries in order to support
postgres. The Categories in postgres is an enum instead of a table and
we don't need to use the table in sqlite because the value are hardcoded
in the html and are unlikely to ever change.

This commit breaks the thumbnails in the index. Other functionality
needs to be tested before merging.
2017-05-06 19:02:02 -04:00
sfan5
b7a62c2f20 Stop using categories & status DB tables
Also fixes the incorrect JSON keys in API responses
2017-05-07 00:04:12 +02:00
akuma06
68a7b5922a Merge branch 'master' into master 2017-05-06 22:17:13 +02:00
akuma06
30a53a79ec Forgot files 2017-05-06 22:14:02 +02:00
ayame-git
a55bb483da Status model and field for Users 2017-05-07 01:52:27 +03:00
akuma06
9b5cd38b99 Added torrents on model user 2017-05-06 18:09:29 +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
36a7d16e34 Get comments working 2017-05-06 12:18:24 +10:00
sfan5
4ddf55bcc4 Force width of category image container 2017-05-05 22:53:17 +02:00
akuma06
9586f1e731 Rearranged Files
Configurations are separated in files in the folder config
Connection to database by a package to import when needed
Models will be in a model package for better maintenance
Services access to the models
Utils are tools or functions that can be used anywhere
main.go cleaned a bit and other files modifications are there for the above modifications
2017-05-05 14:20:51 +02:00