Fork me on GitHub
Subscribe 5

Ticket #943 (open enhancement)

Simple post management API

  • Created: 2014-01-14 09:03:28
  • Reported by: Franz
  • Assigned to: Franz
  • Milestone: 1.6
  • Component: security
  • Priority: high

confirm_referrer() breaks integrations, e.g. when trying to create posts from other pages on the same server, the changes in v1.5.6 break things.

We can't change that easily, unfortunately, but we can create some helpers like flux_validate_post() and flux_create_post() to make building these integrations easier.

Topic: https://fluxbb.org/forums/viewtopic.php?id=7520

History

Franz 2014-01-15 09:20:27

  • Description changed. (Diff)
  • Owner set to Franz.

Franz 2014-01-15 09:20:47

  • Summary changed from confirm_referrer() breaks integrations to Simple post management functions.

Franz 2014-01-15 09:20:56

  • Summary changed from Simple post management functions to Simple post management API.

AracornRed 2014-01-16 16:00:46

Should we go ahead and include edit post functionality into this as well?  So basically something like:

function flux_post($action, $id, $message, $subject, $no_smilies, $subscribe) {
	if ($action == edit_post)
		Update Post $id
	if ($action == create_reply)
		Create post in Topic $id
	if ($action == create_topic)
		Create post & topic in Forum $id
}

Also should validation be part of the function (and it can return error messages on fail) or separate?

Franz 2014-01-16 16:13:13

Validation will be a separate function. And I'll look into implementing the editing, too. Should be easy...

Franz 2014-01-17 00:35:54

Commit 5d6a1da to fluxbb 943-api-functions

#943: Experiment with a simple topic validation function.

adaur 2014-08-11 09:52:10

The idea is pretty cool, but I'm not sure spending time and adding new features on 1.5.* is a good idea anymore...

Franz 2014-08-18 14:13:03

You're probably right.

Franz 2014-10-20 11:51:45

  • Milestone changed from 1.5.7 to 1.5.8.

Franz 2015-01-18 14:57:14

  • Milestone changed from 1.5.8 to 1.5.9.

adaur 2015-06-17 21:20:20

I think this should be part of v"1.6"

Comment edited 1 times (Diff)

Franz 2015-06-18 15:59:32

Agreed. I'll create a new milestone for these tickets later.

quy 2015-07-06 12:34:30

  • Milestone changed from 1.5.9 to 1.6.

Studio384 2015-12-27 21:35:51

  • Type changed from bug to enhancement.