I am creating a new user(via direct db insertion 😉, then creating a new discussion via the api -- /api/discussions, using a master key. I'm trying to set the author of the new discussion/post to my new user via the trailing syntax
"; userId={$author_user_id}"
This fails with the 'The tag count primary must be 1' error, but if I use userId=1 (admin), it works fine.
We don't allow new users to create new discussions, but I thought since I'm using the master key, I could set the userid as needed. And I do not understand the error 'The tag count primary must be 1' -- I am providing an explicit tag in the /api/discussions call.
Thanks in advance for any insight...
Flarum core 1.6.3
PHP version: 8.1.15
MySQL version: 10.6.11-MariaDB
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, readline, Reflection, SPL, session, standard, bcmath, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, intl, exif, mysqlnd, PDO, Phar, SimpleXML, sockets, sodium, sqlite3, tokenizer, xml, xmlwriter, xsl, mysqli, pdo_mysql, pdo_sqlite, xmlreader, zip, igbinary, imagick, msgpack, redis, Zend OPcache
+-----------------------+---------+--------+
| Flarum Extensions | | |
+-----------------------+---------+--------+
| ID | Version | Commit |
+-----------------------+---------+--------+
| flarum-flags | v1.6.1 | |
| flarum-approval | v1.6.1 | |
| flarum-tags | v1.6.1 | |
| fof-formatting | 1.0.2 | |
| flarum-suspend | v1.6.1 | |
| flarum-subscriptions | v1.6.3 | |
| flarum-sticky | v1.6.1 | |
| flarum-statistics | v1.6.1 | |
| flarum-nicknames | v1.6.1 | |
| flarum-mentions | v1.6.3 | |
| flarum-markdown | v1.6.1 | |
| flarum-lock | v1.6.1 | |
| flarum-likes | v1.6.1 | |
| flarum-lang-english | v1.6.0 | |
| flarum-emoji | v1.6.1 | |
| flarum-bbcode | v1.6.0 | |
| askvortsov-categories | v3.0.6 | |
+-----------------------+---------+--------+
Base URL: https://flarum.b****
Installation path: /usr/share/nginx/vhosts/flarum
Queue driver: sync
Session driver: file
Mail driver: mail
Debug mode: off