1. 18 May, 2019 1 commit
  2. 16 Jan, 2017 1 commit
  3. 15 Jul, 2016 1 commit
  4. 01 Dec, 2015 1 commit
  5. 22 Oct, 2015 1 commit
    • Son Nguyen's avatar
      Handle embedded image deletion better. Bug 1489284 · 740c0fa7
      Son Nguyen authored and Robert Lyon's avatar Robert Lyon committed
      Refactor updating embedded images
      
      Deals with the deleting of embedded images in a:
      - blog
      - forum post
      - forum topic
      - group description
      - note
      - page description
      
      Also sorts out the problem where a note embedded item can be saved
      with both 'editnote' and 'textbox' resourcetype. We only need one.
      
      Also add 'static' to EmbeddedImage::methods()
      
      behatnotneeded
      
      Change-Id: Ife1f9dee5ffe9eae4468eadb8f46a16a0a2a9044
      740c0fa7
  6. 19 Oct, 2015 1 commit
  7. 08 Sep, 2015 1 commit
  8. 20 Jun, 2015 1 commit
  9. 15 Jun, 2015 1 commit
  10. 30 Mar, 2015 1 commit
  11. 14 Mar, 2015 1 commit
  12. 03 Dec, 2014 1 commit
  13. 01 Sep, 2014 1 commit
  14. 28 Jul, 2014 1 commit
  15. 24 Jun, 2014 1 commit
  16. 05 Jun, 2014 2 commits
  17. 04 Jun, 2014 2 commits
  18. 20 May, 2014 1 commit
    • Ruslan Kabalin's avatar
      Add forum objectionable content reporing functionality (bug #1024872). · 00e0488a
      Ruslan Kabalin authored and Robert Lyon's avatar Robert Lyon committed
      
      
      The feature allows to report objectionable content in the forum posts and
      topics. When post is reported, the notification is sent to site admins,
      group admins and forum moderators. Any of above can take action and either
      mark the post as not objectionable or delete it. In both cases the
      notification about action will be sent to users who were originally
      notified about objectionable content, so that they will be aware on other
      person action and outcomes. Site admin normally can't access the content of
      the forum he/she is not a member of, however in the case of objectionable
      content, site admin will be able to have temporary rights similar to group
      admins, making possible to delete or edit any post in the given forum. Once
      the issues is resolved (forum no longer contains objectionable content),
      admin will not longer be able to access forum in the group he/she is not a
      member.
      
      Change-Id: I12e459e2f754fcc7f5eeb0bad2f646927ad03cf8
      Signed-off-by: default avatarRuslan Kabalin <r.kabalin@lancaster.ac.uk>
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      00e0488a
  19. 16 Apr, 2014 1 commit
    • Nathan Lewis's avatar
      Improvements to notification system (Bug #1299993) · 63e0484d
      Nathan Lewis authored
      
      
      - Each activity type can specify a default notification method. They default
        to 'email' to remain backwards compatible.
      - Each activity type can specify if it is allowed to be set to 'none'. Defaults
        to 'allowed' for backwards compatibility.
      - Removed 'required' from notification settings - it didn't make sense, and the
        change above deals with this in a better way.
      - The site wide defaults for each activity type can be edited in
        Site options -> Notification settings. These are applied to new users or
        whenever a user does not have the appropriate usr_activity_preference records.
      - Removed 'Default notification method' as it's functionality is now covered by
        the change above.
      - There is a separate help next to each activity type to explain what messages
        will be affected by the setting.
      
      Change-Id: I131cdeefbeaa8e43688aefd9d770fc8cb9bceea8
      Signed-off-by: default avatarNathan Lewis <nathan.lewis@totaralms.com>
      63e0484d
  20. 06 Mar, 2014 1 commit
  21. 19 Feb, 2014 1 commit
  22. 22 Jan, 2014 1 commit
  23. 18 Dec, 2013 1 commit
  24. 26 Nov, 2013 1 commit
  25. 22 Nov, 2013 2 commits
  26. 11 Nov, 2013 1 commit
    • Ghada El-Zoghbi's avatar
      Bug1075760: reporting objectional material with no message doesn't get sent to... · 568074bf
      Ghada El-Zoghbi authored
      
      Bug1075760: reporting objectional material with no message doesn't get sent to admin with digest emails
      
      Email digest table has a not null contraint for the message field:
      1. Force the user to enter something in the objectionable comment.
      2. Other areas: if a user enteres a message (i.e. in a forum)
      which is made up of html (i.e. a smiley face),
      the message gets 'cleaned' by stripping html tags.
      This leaves it empty and fails when trying to insert into the
      email digest table.
      Clean the message with html2text instead of str_shorten_html.
      3. As a last resort, before inserting into the email digest table,
      make sure there is at least a space in the message field (if it's empty).
      
      Change-Id: I05a77e0682017839b34e74241eefb98fb788eab5
      Signed-off-by: default avatarGhada El-Zoghbi <ghada@catalyst-au.net>
      568074bf
  27. 14 Oct, 2013 1 commit
  28. 17 Jan, 2013 2 commits
  29. 02 Nov, 2012 1 commit
    • Brian King's avatar
      Bug 1073136 another fix for forum sorting · 75f3ed93
      Brian King authored
      
      
      Fix ordering of forums when there are more than 10 forums
      
      ANSI SQL function CHAR_LENGTH (works on postgresql and mysql)
      is used to help sort the forums in the correct order.  Without this,
      if you have 11 forums, the 'order by' using the varchar weight value
      results in them being ordered 0, 1, 10, 2, 3, ....
      
      Apparently there is no my- and postgresql compatible syntax to cast
      strings to integers, so this patch orders first by string length, then
      by string value of the column storing the weight of the forum.
      
      Change-Id: I715f52d097189b9d3988339984220185cc1d6498
      Signed-off-by: default avatarBrian King <brian@liip.ch>
      75f3ed93
  30. 13 Sep, 2012 1 commit
  31. 31 Jul, 2012 1 commit
  32. 19 Jun, 2012 1 commit
  33. 08 Jun, 2012 1 commit
  34. 30 May, 2012 1 commit
  35. 02 Feb, 2012 1 commit
    • Richard Mansfield's avatar
      Remove unnecessary sanitisation from forum notifications (bug #882894) · 1c022eed
      Richard Mansfield authored
      In commit 93c012f2
      
      , the forum and group name were added to the body
      of forum post email notifications, each wrapped in a call to
      clean_html (htmlpurifier).  This crashes cron due to out-of-memory
      errors whenever there are more than a few subscribers, and stops
      notifications from being sent out at all.
      
      The forum and group name only need to be rendered once per forum post,
      so this could be fixed by moving the clean_html call up to the
      activity constructor, rather than doing it in the get_emailmessage,
      get_htmlmessage functions.  These functions get called for every
      single subscriber notification, to ensure the string is displayed in
      the subscriber's language.
      
      But because group and forum names are never rendered as html, we don't
      need to use htmlpurifier - html escaping is more appropriate and less
      memory-hungry.
      
      Change-Id: I0a4133b0a11e0e0004bdab1c29984ab4fc5dfbbf
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      1c022eed
  36. 24 Nov, 2011 1 commit