Commit graph

86 commits

Author SHA1 Message Date
Soham Kulkarni
64db88228f
refactor: seperate blogs into a seperate app (#32737)
* fix: remove doctypes,workspace blocks, files

* fix: minor python tests and UI tests

* fix: remove blog post from tests

* fix: remove blogger as role for tests

* fix: add check for if doctype exists

* fix: ui test

* fix: more cleanup

* fix: cleanup comments and fix test_query

* fix: resolve conflicts

* fix: add warning and handle comments
2025-07-28 14:35:02 +05:30
Ankush Menat
de9ac89748 style: re-format with ruff 2024-02-05 18:53:33 +05:30
Maharshi Patel
fba6b37a3c fix: website comments and card style
- fix website comments section and changed comment button to primary
- replaced shadow with border on card style for website
- removed line-height from avatar as it is unnecessary
2023-10-20 14:43:07 +05:30
Raffael Meyer
e5b1b8d681
fix: improved validation in add_comment (#20520) 2023-04-09 16:40:51 +05:30
Hussain Nagaria
0411328101 fix: use document title instead of name in subject 2023-01-20 18:30:27 +05:30
Shariq Ansari
04f4fd8cfc
fix: Redirect to comment in the doc comment section (#17538) 2022-07-18 22:00:54 +05:30
Shariq Ansari
a8f86abbd8
refactor: Replaced blog's feedback with comment's comment_type='Like' (#17479) 2022-07-14 14:09:00 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Gavin D'souza
b696fa6da5 perf: Pre-compile and re-use regexp pattern
Converted all possible usages of re.* that weren't compiling the regex
separately and re-using it. Separated out the compiled patterns as
global variables. Repetitive patterns could be made DRY-er.

Would be nicer to have all regexes in a single module so that we could
re-use better, keep track of outdated, and keep checks for possible
reDos' etc
2022-06-08 14:07:38 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Faris Ansari
e13c74b53f fix: strip html from comment content 2022-04-06 16:28:57 +05:30
Faris Ansari
9943423a1f fix: strip html from blog comments to prevent spam 2022-04-06 16:10:14 +05:30
Rushabh Mehta
3a2b86661a fix(style): web form cleanups 2022-03-24 09:21:34 +05:30
shadrak gurupnor
62643e8355 fix: filter html tags in comments 2022-01-29 11:45:51 +05:30
Shariq Ansari
a6cd8e0d8e fix: Added checkbox to enable disable email notification for blog comment and feedback 2021-11-16 16:45:22 +05:30
Shariq Ansari
e62f2627e0 fix: some more changes in design 2021-11-10 20:42:56 +05:30
Shariq Ansari
632e3acc01 refactor: New Feedback & Comment Design for Blog Post 2021-10-28 20:49:34 +05:30
Gavin D'souza
3446026555 chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Suraj Shetty
7dfced5047 Merge branch 'develop' of https://github.com/frappe/frappe into refactor-website 2021-06-17 09:48:50 +05:30
mergify[bot]
9866aab28c
Merge pull request #13466 from shariquerik/allow_comment_for_guest
fix: Allow guest to comment on Web Page & Blog Post
2021-06-16 07:43:36 +00:00
shariquerik
e9a83f2764 fix: minor fix 2021-06-16 12:49:30 +05:30
shariquerik
5dfe65f8f9 fix: sider fix 2021-06-15 21:23:38 +05:30
shariquerik
d08e0f6605 fix: server-side validation 2021-06-15 20:27:55 +05:30
shariquerik
1fbb22d36f fix: Allow guest to comment on Web Page & Blog Post 2021-06-10 15:45:22 +05:30
Suraj Shetty
2d8c6c1710 Merge branch 'develop' of https://github.com/frappe/frappe into refactor-website 2021-06-03 11:43:28 +05:30
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Suraj Shetty
86897c1808 refactor: Remove render.py and move all utility functions to utils.py
- Replace or remove all render imports
2021-05-25 10:53:35 +05:30
Rushabh Mehta
75fe8a615a feat(app): move /desk to /app 2020-11-11 16:31:47 +05:30
Faris Ansari
c555e819d5 feat: Extended spacing scale 2020-09-03 13:59:20 +05:30
Chinmay D. Pai
f1f8d0a722
fix: use search instead of match to find url and email
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-07-07 14:59:28 +05:30
Chinmay D. Pai
491be746c8
chore: add client-side empty comment validation
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-07-02 19:28:08 +05:30
Chinmay D. Pai
109c7a1ce8
fix: remove comment length restriction and explicitly set user
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-07-02 19:18:13 +05:30
Chinmay D. Pai
1390b1c627
fix: limit commenting to logged in accounts
* do not allow users not logged in to comment
* add an hourly limit of 20 comments per user
* add better checks for urls and email

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-07-02 17:46:08 +05:30
mergify[bot]
71d25dece1
Merge pull request #10742 from kennethsequeira/comment
fix: Comment link sent in email
2020-06-19 11:37:38 +00:00
Kenneth Sequeira
bb8f2d1b5f fix: Comment link sent in email 2020-06-19 15:55:39 +05:30
Shivam Mishra
299200da19 refactor: macro for avatar 2020-06-01 14:13:45 +05:30
nehasacher143
d2369f76f6
feat: disable fields for comment (#9637)
* feat: disabled email and name fields for comments

* fix: disabled fields only for logged in users
2020-03-04 14:22:05 +00:00
Faris Ansari
12d12c640b fix: Web Page (#7593)
- Sender fullname bug
- Rename section SEO to "Header, Breadcrumbs and Meta Tags"
2019-05-30 13:48:03 +05:30
Rushabh Mehta
c89185aed8 fix(minor): comments.py 2019-05-16 18:45:41 +05:30
Rushabh Mehta
29c0d6f16a fix(minor): comments.py 2019-05-16 17:58:27 +05:30
Rushabh Mehta
0284b1a965 fix(null-handling): for doctype, doctype, ignore null values 2019-05-16 15:44:46 +05:30
Rushabh Mehta
04c6ed3605 fix(comment): blog comment email and min length 2019-04-16 09:06:18 +05:30
Prateeksha Singh
46738bf90a fix(comment): allow sender or comment_email to render a comment (#7138) 2019-03-26 19:55:49 +05:30
Faris Ansari
07ac04e123 fix: Comment test 2019-03-02 14:24:14 +05:30
Faris Ansari
5a96fc70de Merge branch 'develop' of https://github.com/frappe/frappe into website-bootstrap-4 2019-02-20 19:25:25 +05:30
Rushabh Mehta
bee15006cb fix: string formatting 2019-02-09 20:51:39 +05:30
Rushabh Mehta
a1eb5bf9b3 fix: add tests 2019-02-09 15:22:21 +05:30
Rushabh Mehta
ae097e5139 fix: tests, check for spam comments 2019-02-07 16:35:50 +05:30
Rushabh Mehta
41d90fa6d1 BREAKING CHANGE: Comments are now handled separately from Communication and Version 2019-02-07 16:35:50 +05:30
Faris Ansari
428c52b99f fix: Bootstrap 4 class fixes 2019-01-31 19:37:43 +05:30