• Extensions
  • FriendsOfFlarum Byōbu, well integrated, advanced private discussions

I have another issue that doesn't seem to be specific to Byobu, but @luceos might have an explanation.

I am trying to exclude private discussions from the 'discussions' tab on the profile page (e.g. /u/Pollux/discussions).

In Beta 13 I could limit my results by adding -is:private to the api query, e.g. /api/discussions?filter[q]=author:Pollux%20-is:private. In Beta 14 the same query gives me only the private discussions, the minus sign is ignored.

Is this on purpose? And if yes, is there a new way to exclude private discussions from the results?

    Pollux the unified index option is part of the user settings. And default the private discussions do not show on the index.

      luceos the unified index option is part of the user settings. And default the private discussions do not show on the index.

      I know. But this setting doesn't affect the inclusion of private discussions within the profile page. Furthermore I want
      the result set in the profile page to be independent from the unified index setting; private discussions shall always be excluded from the 'discussions' tab and be shown exclusively in a to be created 'private discussions' tab.

      I just ask myself if the described difference between Beta 13 and Beta 14 regarding the gambit:

      is:private vs. -is:private

      ... is on purpose. In Beta 13 the first one delivers the complementary result set to the second whereas in Beta 14 both show the same results, just the private discussions. The minus sign is ignored.

      In comparison author:Pollux and -author:Pollux work as intended and identically in Beta 13 and Beta 14.

        Pollux I know. But this setting doesn't affect the inclusion of private discussions within the profile page. Furthermore I want
        the result set in the profile page to be independent from the unified index setting; private discussions shall always be excluded from the 'discussions' tab and be shown exclusively in a to be created 'private discussions' tab.

        I wasn't aware that was happening, that sounds like a bug.

        Pollux I just ask myself if the described difference between Beta 13 and Beta 14 regarding the gambit:

        is:private vs. -is:private

        ... is on purpose. In Beta 13 the first one delivers the complementary result set to the second whereas in Beta 14 both show the same results, just the private discussions. The minus sign is ignored.

        That gambit is part of byobu not core and yes I touched pretty much all the code that was contained in byobu because it was big mess. I'm afraid new bugs might have arisen. I'll look at fixing those when I have time.

          luceos That gambit is part of byobu not core and yes I touched pretty much all the code that was contained in byobu because it was big mess. I'm afraid new bugs might have arisen. I'll look at fixing those when I have time.

          This sounds great.

          Being able to negate the is:private gambit would put this one in line with the core gambits, which seems a desirable goal to me.

          idk if this is helpful at all, i'm new to flarum (and laravel in general) and don't know enough about how byobu functions to fix it, but the permissions issue with the tags seems to stem from the approveIfPrivate function in the discussion policy. not returning anything seems to fix the bug.

          also i think it's unrelated but in the isPrivate function in the screener, it returns users twice instead of either users or groups.

          neko I think this is probably related to the issue where all replies require approval, but if you have a reply that's awaiting approval, the topic shows up in the list of private discussions.

          I just tested this issue and you are right! It's the same with me. And in all previous versions of Byobu there were problems with the Approval extension, it seems that these two extensions are in conflict and don't like each other 😆

          • [deleted]

          Seeing this after opening a new "Discuss Privately" window, then closing it, and trying to open again

          Uncaught (in promise) TypeError: Cannot read property 'toArray' of undefined
              at e.n.data (PrivateDiscussionComposer.js:29)
              at t.app.initializers.add.et.a.changed (index.js:40)
              at t.<anonymous> (index.js:186)
              at t.<computed> [as preventExit] (extend.js:61)
              at t.e.load (ComposerState.js:53)
              at t.<computed> [as load] (extend.js:25)
              at PrivateComposing.js:25
              at new Promise (<anonymous>)
              at t.o.action (PrivateComposing.js:15)
              at _.handleEvent (render.js:888)
          2PrivateDiscussionComposer.js:29 Uncaught TypeError: Cannot read property 'toArray' of undefined
              at e.n.data (PrivateDiscussionComposer.js:29)
              at t.app.initializers.add.et.a.changed (index.js:40)
              at index.js:169
          2PrivateDiscussionComposer.js:29 Uncaught TypeError: Cannot read property 'toArray' of undefined
              at e.n.data (PrivateDiscussionComposer.js:29)
              at t.app.initializers.add.et.a.changed (index.js:40)
              at index.js:169
          n.data @ PrivateDiscussionComposer.js:29
          app.initializers.add.et.a.changed @ index.js:40
          (anonymous) @ index.js:169

          Any ideas ?

          Thanks

          peopleinside beta and up are marked as compatible, because some people tag (especially language) extensions based on the Flarum versioning. Alphas and dev versions are not compatible. Once flarum core leaves beta I guess that will change as well.

          Has anyone running the 0.6 beta met any issues? Otherwise I'll be tagging a stable 0.6 soon.

          • neko replied to this.

            cmwetherell

            sylv38

            If this is still an issue please post the output of php flarum info and screencapture your Byobu related permissions please.

              luceos Wow, quick answer, thanks !
              Here are required screen captures (sorry, permissions are in french)

              Flarum core 0.1.0-beta.14.1
              PHP version: 7.3.25
              Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, session, intl, json, ldap, mbstring, standard, pcntl, PDO, mysqlnd, pdo_sqlite, pgsql, Phar, posix, Reflection, imap, SimpleXML, soap, sockets, sodium, pdo _mysql, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, mysqli, geos, imagick, mailparse, mcrypt, mongodb, OAuth, PDFlib, propro, raphf, ssh2, timezo nedb, uploadprogress, xmlrpc, yaz, zip, http, ionCube Loader
              +-------------------------------+------------------+--------+
              | Flarum Extensions | | |
              +-------------------------------+------------------+--------+
              | ID | Version | Commit |
              +-------------------------------+------------------+--------+
              | flarum-bbcode | v0.1.0-beta.12 | |
              | flarum-emoji | v0.1.0-beta.14 | |
              | flarum-flags | v0.1.0-beta.14.1 | |
              | flarum-likes | v0.1.0-beta.14 | |
              | flarum-lock | v0.1.0-beta.14 | |
              | flarum-mentions | v0.1.0-beta.14 | |
              | flarum-sticky | v0.1.0-beta.14 | |
              | flarum-subscriptions | v0.1.0-beta.14 | |
              | flarum-suspend | v0.1.0-beta.14 | |
              | flarum-tags | v0.1.0-beta.14 | |
              | flarum-markdown | v0.1.0-beta.14 | |
              | qiaeru-lang-french | v1.8.5 | |
              | rooaaar-lang-french-extended | v1.17.0 | |
              | fof-linguist | 0.4.4 | |
              | fof-formatting | 0.2.0 | |
              | fof-disposable-emails | 0.2.0 | |
              | fof-merge-discussions | 0.4.0 | |
              | fof-polls | 0.2.1 | |
              | fof-pretty-mail | 0.2.0 | |
              | fof-profile-image-crop | 0.2.0 | |
              | fof-share-social | 0.2.0 | |
              | fof-sitemap | 0.5.4 | |
              | fof-spamblock | 0.3.0 | |
              | fof-split | 0.5.1 | |
              | fof-stopforumspam | 0.3.2 | |
              | fof-subscribed | 0.3.0 | |
              | fof-terms | 0.5.0 | |
              | fof-upload | 0.11.3 | |
              | fof-user-bio | 0.3.1 | |
              | fof-user-directory | 0.4.0 | |
              | v17development-seo | 1.4 | |
              | clarkwinkelmann-emojionearea | 0.3.0 | |
              | fof-nightmode | 0.6.0 | |
              | fof-pages | 0.5.1 | |
              | fof-links | 0.4.2 | |
              | flarum-pusher | v0.1.0-beta.14.1 | |
              | clarkwinkelmann-circle-groups | 0.2.2 | |
              | clarkwinkelmann-group-list | 0.1.0 | |
              | fof-byobu | 0.6.0-beta.2 | |
              +-------------------------------+------------------+--------+

              luceos Maybe it can help you : note that users are correctly found and listed in flarum general search box. In byobu, the popup with "users" title appears while typing a name, but users are not listed below.