Umputun
3cb07b9cd6
fix incorrect sinceTime for comments stream
2020-04-14 03:40:10 -05:00
Dmitry Verkhoturov and Umputun
4605d567ae
make image.Close wait for all images Submit completion
2020-04-13 16:01:51 -05:00
Dmitry Verkhoturov and Umputun
afc94adc1b
remove log package usage from tests, sort imports
2020-04-13 16:01:51 -05:00
荒野無燈 and Umputun
9459a2a2f5
notify/email.go: fixup smtp.NewClient second param
2020-04-13 14:02:00 -05:00
荒野無燈 and Umputun
200f464925
smtp buildMessage(): flush quotedprintable writer buff explicitly
2020-04-13 14:01:21 -05:00
Umputun
d7442ef1a9
switch flags, revendor
2020-04-13 12:30:23 -05:00
Dmitry Verkhoturov and Umputun
d6c7e151a0
bump modules
2020-04-13 12:03:26 -05:00
Dmitry Verkhoturov and Umputun
dba77d403d
bump go-pkgz modules, bbolt new url
2020-04-12 16:09:01 -05:00
Dmitry Verkhoturov and Umputun
fc63493e7e
return proper content type instead of image/*
2020-04-12 03:57:08 -05:00
Umputun
7614edf167
extract wait in image close
2020-04-12 03:45:03 -05:00
Dmitry Verkhoturov and Umputun
a133ab31fa
add context cancellation to image.Service.Cancel()
2020-04-12 03:34:13 -05:00
Dmitry Verkhoturov and Umputun
449e375cbb
fix image.Service termination in case Submit was never called
2020-04-12 03:34:13 -05:00
Dmitry Verkhoturov and Umputun
cab3b8a831
move admin email notifications call to rest/api module
2020-04-06 16:27:19 -05:00
Dmitry Verkhoturov and Umputun
04d3541de1
add admin email notifications on new comments
2020-04-06 16:27:19 -05:00
Dmitry Verkhoturov and Umputun
e377bceeb4
make notify.Email support multiple messages in one Send
2020-04-06 16:27:19 -05:00
Dmitry Verkhoturov and Umputun
ce92f63215
add remote image storage support to backend
2020-04-04 14:06:39 -05:00
Umputun and Dmitry Verkhoturov
b6ef4f393a
switch to go 1.14 #636
2020-04-04 18:38:35 +02:00
Dmitry Verkhoturov
4539b8ffb4
hide image.Store from image.Service consumers
2020-03-27 21:03:49 +01:00
Dmitry Verkhoturov
e1d502ecf8
add clarifying comment to image.Store interface
2020-03-27 02:24:44 +01:00
Dmitry Verkhoturov
33dde7d4dd
move MaxSize, MaxHeight and MaxWidth from image Storage to Service
2020-03-27 02:10:49 +01:00
Dmitry Verkhoturov
ef6634e9b3
exclude unused filename from image.Store.Save() parameters
2020-03-26 23:04:49 +01:00
Dmitry Verkhoturov
d714e32668
explicitly ignore error in test fmt.Fprint
2020-03-26 23:04:31 +01:00
Dmitry Verkhoturov and GitHub
c9a23698ba
Image interface changes ( #623 )
...
@paskal
* sort imports, add missing copyright
* regenerate engine mock
* make all image.Store interface functions public
* go mod tidy
* make image.Store.Load return []byte instead of io.ReadCloser
* separate memory_store example RPC server to multiple files by handlers groups
2020-03-22 20:43:43 -05:00
Umputun
7497561d9c
set anonymose with admin names to blocked #605
2020-03-08 15:37:31 -05:00
Umputun
1334048d89
allow /api/v1/user calls for robots
2020-02-09 14:41:38 -06:00
1e548eb85f
Code colors (backend support) ( #590 )
...
* testing code highlight with bfchroma render
* add bfchroma vendoring
* render code htm with classes
* adjust bfchroma test cases inside formatter
* go mod tidy
* fix markdown code render tests
* adjust comment text sanitizer to permit code HTML classes
* go mod tidy
* add chroma classes list regexp
* unify gitignore entries style
Co-authored-by: Umputun <umputun@gmail.com >
2020-02-08 21:11:12 -06:00
Dmitry Verkhoturov
62c43cce77
replace blackfriday.v2 with blackfriday/v2
2020-02-07 22:15:05 +01:00
019fa9e5ac
Simpler image service ( #580 )
...
* fix potential race on close
* move validate inside
* demote commit and cleanup in image.Store to non-exposed functions.
* replace immediate image commit with delayed via Submit
* minor: remove error logging, rename tests
* minor: err wrapping, comments wording
* clarify FileSystem.Save code
* attempt to fix #584 by making submitted image commits on a half of TTL
Co-authored-by: Dmitry Verkhoturov <paskal.07@gmail.com >
2020-01-27 14:17:58 -06:00
Umputun
be3e5f0246
set exclude-use-default: false for linter
2020-01-27 14:17:05 -06:00
Artur Mullakhmetov and Umputun
22a88c579f
Fix unstable test
...
Make comment consistent with code
Decrease timeout param to prevent unwanted 200 response
2020-01-26 11:35:17 -06:00
Artur Mullakhmetov and Umputun
dcab5a1622
switch image interpolation to CatmullRom
2020-01-26 11:35:17 -06:00
Pavel Mineev and Umputun
45f929868a
fix name line break and add styles for blockquote
2020-01-23 21:45:32 -06:00
Dmitry Verkhoturov and Umputun
f97d8232ed
Add subscription link support to notification email verification template ( #573 )
...
* add subscription link support to notification email verification template
* always show token for email subscription in verification email
* hide SubscribeURL from users
2020-01-20 18:27:23 -06:00
Umputun
f30f9b97af
missing methods comments
2020-01-18 22:39:21 -06:00
Anton Panferov and Umputun
d69495a9e4
Preserving external images (issue #399 ) ( #447 )
...
* added passing userID to formatters
* added images preserver
* pinned version of golangci-lint
* implemented caching in proxy
* added tests for caching proxy
* removed previous implementation
* removed passing userID into formatter
This reverts commit 05014a5b24190836958377fcd7304294ed02f061.
* made linter happy
* removed storing image extension for FS store
* fixed bug with context cancelation preventing reading downloaded image
* fixed bug with trusting return value and ignorring error
* updated README
* added nolint for sha1
* removed unused resized flag
* added backward compatibility for config
* added handling deprecated cli parameter
* corrected func comment
* made linter happy
* made linter happy
2020-01-18 22:31:30 -06:00
Dmitry Verkhoturov and Umputun
0b55c4f7ad
lower Cache-Control max-age from 24h to 1h to increase speed of updates delivery
2020-01-18 17:58:58 -06:00
Dmitry Verkhoturov and Umputun
540d828ea1
fix ParentCommentDate in email template, fix #561
2020-01-17 17:19:19 -06:00
Umputun
b0898cd1f3
add cache control for frontend assets
2020-01-15 15:07:45 -06:00
Pavel Mineev and Umputun
658279379a
Update email templates ( #550 )
...
* Update email templates
* Fix README
* fix detail
* fix typo
* Changes connected with comment at issue
https://github.com/umputun/remark/issues/494#issuecomment-570801318
* Unify styles between templates
* remove breaking words
* use the same prefix for parent and child
2020-01-15 01:22:00 -06:00
Dmitry Verkhoturov and Umputun
d0ddd8aa80
Unify SMTP settings in separate section ( #536 )
...
* move SMTP settings to separate group
* move deprecated options in separate section in readme
* adjust variables in docker-compose
* add description to SmtpGroup
* remove SMTP option setting which is already set to same value
* remove smtp port default for consistency
* add server deprecated functions handling
* satisfy linter
* add missing bracket in description
* add test for handleDeprecatedFlags
* add HandleDeprecatedFlags function to CommonOptionsCommander
* improve HandleDeprecatedFlags behavior
* add missing result check to ServerCommand.HandleDeprecatedFlags
2020-01-14 14:49:39 -06:00
Dmitry Verkhoturov and Umputun
e4d982dbca
Delete user email on /deleteme request ( #540 )
...
* delete user email on deleteme request
* add tests for user email deletion in /deleteme request
2020-01-07 14:49:24 -06:00
Dmitry Verkhoturov and Umputun
eeb9c72248
check user equality for email notifications only by ID
2020-01-07 14:25:27 -06:00
Dmitry Verkhoturov and Umputun
d15176f36d
Add email subscription info to User information ( #528 )
...
* replace store.Locator with SiteID where only it is used
* add EmailSubscription flag to User information
* add /user endpoint test for email subscription
2020-01-05 13:42:16 -06:00
tim.ivaikin and Umputun
a4d10f54dd
Support for 3x devices including 11 Pro and MacPro
2020-01-05 12:58:25 -06:00
tim.ivaikin and Umputun
0462cbcd9e
Added retina display support
2020-01-05 12:58:25 -06:00
Dmitry Verkhoturov and Umputun
b7980849b2
improve TestService_WithDrops failure output
2020-01-04 12:53:31 -06:00
Dmitry Verkhoturov and Umputun
4cae7f0324
make TestServerApp_MainSignal more robust
2020-01-02 14:35:50 -06:00
Umputun
b434f52aa1
resolve potentially concurrent writes to bolt in service tests
2020-01-02 14:02:16 -06:00
Artur Mullakhmetov
2d942f0a2c
Shutdown test servers
2020-01-02 00:29:43 +03:00
Artur Mullakhmetov and Umputun
12b916b097
Make test offline friendly
2020-01-01 15:14:26 -06:00