diff --git a/appinfo/info.xml b/appinfo/info.xml index 717ace865..b294d1b41 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -1,52 +1,52 @@  - forms - Forms - 📝 Simple surveys and questionnaires, self-hosted - + forms + Forms + 📝 Simple surveys and questionnaires, self-hosted + - 2.4.0 - agpl + ]]> + 2.4.0 + agpl - Affan Hussain - Ajfar Huq - Inigo Jiron - Jan C. Borchardt - John Molakvoæ - Jonas Rittershofer - Kai Schröer - Kameron Sheppard - Natalie Gilbert - Nick Gallo - René Gieling - Stephan Link - Tim Sattizahn - Vinzenz Rosenkranz + Affan Hussain + Ajfar Huq + Inigo Jiron + Jan C. Borchardt + John Molakvoæ + Jonas Rittershofer + Kai Schröer + Kameron Sheppard + Natalie Gilbert + Nick Gallo + René Gieling + Stephan Link + Tim Sattizahn + Vinzenz Rosenkranz - tools - social - organization + tools + social + organization - https://github.com/nextcloud/forms - https://github.com/nextcloud/forms/issues - https://github.com/nextcloud/forms - - https://github.com/nextcloud/forms/blob/master/README.md - + https://github.com/nextcloud/forms + https://github.com/nextcloud/forms/issues + https://github.com/nextcloud/forms + + https://github.com/nextcloud/forms/blob/master/README.md + - https://raw.githubusercontent.com/nextcloud/forms/master/screenshots/forms1.png - https://raw.githubusercontent.com/nextcloud/forms/master/screenshots/forms2.png - https://raw.githubusercontent.com/nextcloud/forms/master/screenshots/forms3.png + https://raw.githubusercontent.com/nextcloud/forms/master/screenshots/forms1.png + https://raw.githubusercontent.com/nextcloud/forms/master/screenshots/forms2.png + https://raw.githubusercontent.com/nextcloud/forms/master/screenshots/forms3.png - - - + + + diff --git a/lib/Activity/Provider.php b/lib/Activity/Provider.php index 959cf706f..fd2dbb464 100644 --- a/lib/Activity/Provider.php +++ b/lib/Activity/Provider.php @@ -36,7 +36,6 @@ use OCP\IURLGenerator; use OCP\IUserManager; use OCP\L10N\IFactory; -use OCP\RichObjectStrings\InvalidObjectExeption; use OCP\RichObjectStrings\IValidator; class Provider implements IProvider { @@ -270,15 +269,6 @@ public function getRichFormTitle(string $formTitle, string $formHash, string $ro 'link' => $formLink ]; - // TODO Remove validation as soon as NC21 is out of support. - try { - // Validating a dummy-subject, which uses the richFormTitle. - $this->validator->validate('{form}', ['form' => $richFormTitle]); - } catch (InvalidObjectExeption $e) { - // In case this did not work (type does not exist for formMapper->expects($this->any()) ->method('findbyHash') ->with('abcdefg') ->will($this->throwException(new DoesNotExistException('Form not found'))); - $this->validator->expects($this->any()) - ->method('validate') - ->will($this->throwException(new InvalidObjectExeption())); - // Test Form not found and type invalid $this->assertEquals([ - 'type' => 'highlight', + 'type' => 'forms-form', 'id' => 'abcdefg', 'name' => 'Some Form Title', 'link' => 'http://localhost/apps/forms/'