jordanjay29 I blurred the offensive words. Wont happen again.

Helpful link for filtering shortened urls:
https://sirbz.com/u/list-of-url-shorteners

  • 1url.com
    adf.ly
    bc.vc
    bit.do
    bit.ly
    bitly.com
    buzurl.com
    cur.lv
    cutt.us
    db.tt
    filoops.info
    goo.gl
    is.gd
    ity.im
    j.mp
    link.zip.net
    lnkd.in
    ow.ly
    po.st
    prettylinkpro.com
    q.gs
    qr.ae
    qr.net
    scrnch.me
    t.co
    tinyarrows.com or http://âž¡.ws/
    tinyurl.com
    tr.im
    tweez.me
    twitthis.com
    u.bb
    u.to
    v.gd
    vzturl.com
    x.co
    yourls.org

Kyrne

May you please test the email function. I am noticing differences between your version 1.0 and 1.0.6.1.

See the difference:

Version 1.0:

Version 1.0.6.1:

You can see its missing the Subject and the message.
I did not change the default email message.

    0E800 I did not change the default email message.

    Here lies the problem, my code assumed that people would change the default message. When it wasn't changed, there was no "email text" to grab from the database making it empty. 1.0.6.3 checks if it is set, if it isn't it sets it to the default.

      Now fix your pp link, you deserve a 6pack.

      25 days later

      Kyrne
      Getting this Nginx error:

      PHP message: PHP Warning:  preg_match(): Delimiter must not be alphanumeric or backslash in /var/www/keysndaggers/vendor/issyrocks12/flarum-ext-filter/src/Listener/FilterPosts.php on line 65" while reading response header from upstream, client: 70.213.0.4, server: keys-daggers.org, request: "POST /api/posts/105 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php7-fpm.keysdaggers.sock:", host: "keys-daggers.org", referrer: "https://keys-daggers.org/d/42-test/6"
      ubuntu@v22017014258144095:/var/www/keysndaggers$

      I have been running composer update so I might have updated other packages that is causing it.

        0E800 I need a bit more info. Are you using regex? Send me a photo of your filtered words (please don't embed it).

        12 days later

        Tagged 1.2

        • Added the ability to automatically merge 2 (or more) consecutive posts by the same author in the same discussion (Double posting)
          -Turn this on or off in the admin panel

          Kyrne If you could split this out into its own extension, that'd be a hugely popular tool.

            5 days later

            Every time I create a new discussion or post that is not flagged it Says this in the red window "Oops! Something went wrong. Please reload the page and try again." and under Debug it gives a 201 Created with the following:

            POST http://mytestdomain.com/discussions/api/posts
            
            <br />
            <b>Warning</b>:  preg_match(): Delimiter must not be alphanumeric or backslash in <b>F:\Server\Websites\mytestdomain\discussions\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php</b> on line <b>77</b><br />
            <br />
            <b>Warning</b>:  preg_match(): Delimiter must not be alphanumeric or backslash in <b>F:\Server\Websites\mytestdomain\discussions\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php</b> on line <b>77</b><br />
            <br />
            <b>Warning</b>:  preg_match(): Delimiter must not be alphanumeric or backslash in <b>F:\Server\Websites\mytestdomain\discussions\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php</b> on line <b>77</b><br />
            <br />
            <b>Warning</b>:  preg_match(): Delimiter must not be alphanumeric or backslash in <b>F:\Server\Websites\mytestdomain\discussions\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php</b> on line <b>77</b><br />
            {"data":{"type":"posts","id":"315","attributes":{"id":315,"number":2,"time":"2017-04-26T22:18:17+00:00","contentType":"comment","contentHtml":"\u003Cp\u003Ehey man\u003C\/p\u003E","content":"hey man","ipAddress":"****","canEdit":true,"canDelete":true,"isApproved":true,"canApprove":true,"canFlag":true,"flarum-ext-summaries.excerpt_length":""},"relationships":{"user":{"data":{"type":"users","id":"1"}},"discussion":{"data":{"type":"discussions","id":"70"}},"mentionsPosts":{"data":[]},"upvotes":{"data":[{"type":"users","id":"1"}]},"downvotes":{"data":[]}}},"included":[{"type":"users","id":"1","attributes":{"username":"User-Name","avatarUrl":"http:\/\/mytestdomain.com\/discussions\/assets\/avatars\/v3s2a1g0wzxmgflc.jpg","bio":"User Bio ","joinTime":"2016-06-13T03:33:20+00:00","discussionsCount":21,"commentsCount":2,"canEdit":true,"canDelete":true,"lastSeenTime":"2017-04-26T22:18:17+00:00","isActivated":true,"email":"useremail@gmail.com","antoinefr-money.money":3.96,"canEditMoney":true,"Points":-7,"Rank":"","canActivate":true,"canViewStrike":true,"strikes":null,"gender":null,"age":null,"signature":null,"socialButtons":null,"flarum-ext-summaries.excerpt_length":"","canSuspend":false}},{"type":"discussions","id":"70","attributes":{"title":"Test","slug":"test","commentsCount":2,"participantsCount":1,"startTime":"2017-04-26T22:16:24+00:00","lastTime":"2017-04-26T22:18:17+00:00","lastPostNumber":2,"canReply":true,"canRename":true,"canDelete":true,"canHide":true,"readTime":"2017-04-26T22:18:17+00:00","readNumber":2,"isApproved":true,"canSelectBestAnswer":true,"startUserId":1,"canEditRecipients":true,"canEditUserRecipients":true,"canEditGroupRecipients":true,"isLocked":false,"canLock":true,"canVote":true,"canStrike":true,"canSplit":true,"isSticky":false,"canSticky":true,"subscription":false,"flarum-ext-summaries.excerpt_length":"","canTag":true},"relationships":{"posts":{"data":[{"type":"posts","id":"314"},{"type":"posts","id":"315"}]},"lastUser":{"data":{"type":"users","id":"1"}}}}]}
            

            Once I refresh the page, the post is then made. I also get another 201 Created thrown for any other filtered word other than the first one on my list.

            POST http://mydomainname.com/flaruminstalldirectory/api/posts
            
            <br />
            <b>Warning</b>:  preg_match(): Delimiter must not be alphanumeric or backslash in <b>F:\Server\Websites\mydomainname\flaruminstalldirectory\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php</b> on line <b>77</b><br />
            {"data":{"type":"posts","id":"318","attributes":{"id":318,"number":5,"time":"2017-04-26T22:39:46+00:00","contentType":"comment","contentHtml":"\u003Cp\u003Esons\u003C\/p\u003E","content":"sons","ipAddress":"*******","canEdit":true,"canDelete":true,"isApproved":false,"canApprove":true,"canFlag":true,"flarum-ext-summaries.excerpt_length":""},"relationships":{"user":{"data":{"type":"users","id":"1"}},"discussion":{"data":{"type":"discussions","id":"70"}},"mentionsPosts":{"data":[]},"upvotes":{"data":[{"type":"users","id":"1"}]},"downvotes":{"data":[]}}},"included":[{"type":"users","id":"1","attributes":{"username":"User-Name","avatarUrl":"http:\/\/mydomainname.com\/flaruminstalldirectory\/assets\/avatars\/v3s2a1g0wzxmgflc.jpg","bio":"User Bio ","joinTime":"2016-06-13T03:33:20+00:00","discussionsCount":21,"commentsCount":5,"canEdit":true,"canDelete":true,"lastSeenTime":"2017-04-26T22:39:45+00:00","isActivated":true,"email":"useremail@gmail.com","antoinefr-money.money":5.94,"canEditMoney":true,"Points":-4,"Rank":"","canActivate":true,"canViewStrike":true,"strikes":null,"gender":null,"age":null,"signature":null,"socialButtons":null,"flarum-ext-summaries.excerpt_length":"","canSuspend":false}},{"type":"discussions","id":"70","attributes":{"title":"Test","slug":"test","commentsCount":3,"participantsCount":1,"startTime":"2017-04-26T22:16:24+00:00","lastTime":"2017-04-26T22:22:11+00:00","lastPostNumber":3,"canReply":true,"canRename":true,"canDelete":true,"canHide":true,"readTime":"2017-04-26T22:39:49+00:00","readNumber":5,"isApproved":true,"canSelectBestAnswer":true,"startUserId":1,"canEditRecipients":true,"canEditUserRecipients":true,"canEditGroupRecipients":true,"isLocked":false,"canLock":true,"canVote":true,"canStrike":true,"canSplit":true,"isSticky":false,"canSticky":true,"subscription":false,"flarum-ext-summaries.excerpt_length":"","canTag":true},"relationships":{"posts":{"data":[{"type":"posts","id":"314"},{"type":"posts","id":"315"},{"type":"posts","id":"316"},{"type":"posts","id":"317"},{"type":"posts","id":"318"}]},"lastUser":{"data":{"type":"users","id":"1"}}}}]}
            

            The word entered that flagged this post was "sons"
            After refreshing the page the post is shown as flagged
            If you press post reply more than once before refreshing, it will post duplicate flagged posts

              Kyrne
              I will give it a shot and report back. Thanks a lot! Great work, love the idea behind this ext. ?

              EDIT: I have also noticed a bug with emails sent out when a post gets flagged. If I do not use HTML tags and just use the default message, everywhere there is a line break, it says the name of my discussion board lol.
              for example, in order to send an email with the default message I had to change it to include <p> tags and no line breaks, I can not copy the message to show exactly what I mean atm because this new update has broken my filters ext

              After trying to enable it I get this error
              "Parse error: syntax error, unexpected ')' in F:\Server\Websites\MyWebsite\flaruminstallpath\vendor\issyrocks12\flarum-ext-filter\src\Listener\FilterPosts.php on line 77

              I also get the same error in SSH when running migrate or clear cache commands

              Another Edit: I fixed the issue myself by deleting the second closing bracket on line 77 in filterpost.php, might want to update that so anyone else who updates doesn't have a broken front and back end

                22 days later
                4 months later
                4 months later

                Kyrne is this still working/supported? I can't get the emails to send out.

                2 months later
                9 months later
                3 months later